03-29-2013 09:47 AM
I've got a program that calls Teststand and when I shut down the program I receive the generic Windows has encountered a problem error. I only receive this on XP, not on Windows 7. In my code, for the Form Close event, I have the following code:
axApplicationMgr1.Shutdown();
Application.Exit();
Is there something more that I need to do to close down Teststand properly so I don't get the error?
Thanks.
04-01-2013 04:34 PM
You should consider using the operator interface examples that are shipped with TestStand which includes a C# UI and goes into details for how the MainForm_Closing operation is handled as well as if the form is closing as a result of Windows shutdown. I think it is possible in this case that the axApplicationMgr.Shutdown() starts a shutdown sequence and the Application.Exit() command automatically closes the app without the shutdown sequence finishing.