After the main form closed,I call "Environment.Exit(0);" to terminate the
application,but the CLR report an error.
I call "Application.Exit();" ,then it shows a Win32 error dialog.Why?
Kit George (MSFT) - 02 Mar 2005 17:34 GMT
Typcially this will be because the process is exitting, and trying to exit
again gets a 'process is exitting' error. You can try
Environment.HasShutdownStarted to see whether we can detect that the app is
shutting down, so you can avoid the call.
zz - 03 Mar 2005 01:13 GMT
But Environment.HasShutdownStarted is only useful in Finalize. Now I has
found it caused by DSO COM object. If it connects to the Olap server and
quits application without any DSO operater,an error then may occur on some
win2k server.