Error when App Closes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a strange thing happening... After my app exists I get a flash of an error. Looks like it says Object Reference not set to an instance of an Object (or of the sort) It flashes so quickly I can't read it. I have debugged the code in the dispose events of the main form and I see no error, and only after the app exists to I see the flash even when debugging, yet the code excution is done, nothing to step in to in order to reproduce the error within the debugger. I stop the run and then it flashes again. This is getting very annoying... Any ideas as to how to fix this??
 
Anthony,

it is usual when you have some event firing during close, which accesses
already disposed object(s).

HTH
Alex

Anthony Nystrom said:
I have a strange thing happening... After my app exists I get a flash of
an error. Looks like it says Object Reference not set to an instance of an
Object (or of the sort) It flashes so quickly I can't read it. I have
debugged the code in the dispose events of the main form and I see no error,
and only after the app exists to I see the flash even when debugging, yet
the code excution is done, nothing to step in to in order to reproduce the
error within the debugger. I stop the run and then it flashes again. This is
getting very annoying... Any ideas as to how to fix this???
 
Then there is no other way except to create sample of code which could be
posted here and which demonstrates this behavior.
If you will try to create it I am positive you will find the reason

HTH
Alex
 
Back
Top