We are upgrading from 6.5 to 2011 SP2.
In researching the issue further, I find that:
Scenario 1:
When I load the screen and enter a contract number, which causes the screen information to load, and immediately close, the app crashes.
When I load the screen, wait about 10 seconds, then close, it closes normally.
Scenario 2:
When I load the screen, enter a contract number, then click an option to show all infomation in a grid, then exit the application within a few seconds, it crashes.
Again, if I wait at least 10 seconds, then close, it closes normally.
My guess is that there is some cleanup code that is processing behind the scenes and when the form is closed, the processing has not completed.
When the screenexit routine is called (likely before some code has completed), it seems to enter into an endless loop, which causes the application to eventually crash.
Is there a way to detect processes pending completion and pausing before executing the ScreenExit routine?
The developer that created the apps for the company uses very little error trapping, so I was wondering if it is because Dynamics SL has its own way of handling errors.
What are the best practices for error trapping in Solomon screens. Wondering if we can trap an error at some point.