Application Crash on Exit

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top