Application Crash on Exit

  • Thread starter Thread starter Beebs
  • Start date Start date
B

Beebs

Why is it that when I start my application like this:

Application.Run(New frmStartup)

and exit it like this:

Me.Dispose()

The application crashes. I'm using the singleton method for my forms
and dispose of all other forms causing the startup form to be shown
last. Then I just dispose of that form to close the application.
What could be going wrong, what are some possibilities to correct
this. I'm using VB and am not starting any threads in the app, so
this would not be a problem.

Thanks
 
Well sure - that's a real bad way to end. Just close the frmStartup
instance and the app will exit. Dsiposing the Form in itself will likely
cause ObjectDisposedExceptions as it tries to call things like the Closing
event, etc.

-Chris
 
Back
Top