G
Guest
I have an application that displays a splash screen and loads another .NET
assembly using AppDomain.ExecuteAssembly.
I Create a new application domain then call ExecuteAssembly.
It works file, until I exit the application. Then I get an error when the
first application tries to exit:
An unhandled exception of type 'System.NullReferenceException' occurred in
system.drawing.dll
Additional information: Object reference not set to an instance of an object.
If I call AppDomain Unload in the dispose, sometimes it exits okay,
sometimes it doesn't obviously there is some timing issue.
Does anyone have an example where an application calls ExecuteAssembly() and
then waits for that assembly to exit, and then exit itself.
assembly using AppDomain.ExecuteAssembly.
I Create a new application domain then call ExecuteAssembly.
It works file, until I exit the application. Then I get an error when the
first application tries to exit:
An unhandled exception of type 'System.NullReferenceException' occurred in
system.drawing.dll
Additional information: Object reference not set to an instance of an object.
If I call AppDomain Unload in the dispose, sometimes it exits okay,
sometimes it doesn't obviously there is some timing issue.
Does anyone have an example where an application calls ExecuteAssembly() and
then waits for that assembly to exit, and then exit itself.