The 32-bit version of the app works fine and when we first migrated and created the 64-bit version of the app using PB 2019 the app loaded and exited and everything in between ran with no issues. Since then we've upgraded to 2019 R3 Build 2728 and now when I exit I get an error message that the application has stopped working and please close the program. It also gives me the option to debug the program. In doing so I get the attached screenshots. I should mention, we use a dedicated server to build our exes and it is still running the original PB 2019. We also user PowerGen version 11 to create our exes. We do NOT have any databases connected to the application. Everything is stored externally and is retrieved through COBOL via a 64-bit DLL. Our system administrator is adamant that I should be able to debug through the code. I've tried explaining that the IDE is 32-bit and can't be debugged in 64-bit mode and gave her the .dbg trace file that shows everything, including the environment, has been destroyed.
We did migrate from PB 7 to PB 2019 which is a huge migration but there were zero errors. The migration added the "Alias for" to the dll calls. But, since there is such a learning curve, am I missing something with the debug option? Can I actually break into IDE debug mode in the middle of running the application like she's suggesting? Personally, seeing that the IDE is 32-bit and the application is 64-bit I don't see how but I could be completely misunderstanding that part of it.
Oh, two other things. I did recreate the exe using PB 2019 R3 and used the runtimes from the runtime packager and got basically the same result but pbshr.dll instead of pbshr190.dll and I'd be more than happy to include the .dbg trace file if anyone wants to page through 834,811 lines of code (which is just the open and close of the app). I would strip away the meaningless parsing and whatnot of course. Anyway, any help would be greatly appreciated because I am at a complete loss!! We have some clients that are wanting to merge over to a 100% 64-bit application and this is now the hold up.
Aimee
The framework is quite large and I'm the lone person in charge of maintaining it. I tried for years to convince the bosses that we needed to migrate from PB7 but they wanted to wait until PB was a full 64-bit application and now here I am way behind and have obviously missed quite a few steps in my rush to get the 64-bit exe created. I'm still very confused as to why it worked the first time and now it doesn't. Also, the framework is used to create 4 different other applications and they're all able to exit cleanly. Just this one is having issues. I'm going to try the suggestion you and Armeen have made.
Aimee