Application.Exit takes ages

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,

Could anyone tell me why when I'm debugging my application
and I choose to perform an application.exit, it takes ages
to stop the debug session?

John
 
How much memory do you have on your machine? What is your app doing? Does it
perform any operations during the unload that take a long time to complete?
Are there any finalizers that take a long time to run?

There are lots of potential reasons.
 
What's in the command pattern you mention?

Drawing involves internal calls to unmanaged code - perhaps it's hung up
inside one of those.
 
Well basic hooking commands (classes) to menus and buttons
but the exit menu option is called by the command pattern
that invokes the Application.Exit. I think its more than
likely the drawing that is creating the problems, is there
anyway to find out what is leaking memory/what is slowly
the exit?

regards

John
 
Back
Top