By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,462 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,462 IT Pros & Developers. It's quick & easy.

Error when App Closes

P: n/a
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??

Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Anthony,

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

HTH
Alex

"Anthony Nystrom" <an************@genetibase.com> wrote in message
news:4D**********************************@microsof t.com...
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???

Nov 20 '05 #2

P: n/a
Anything after Application.Run for the form?
Threads?

Alex

"Anthony Nystrom" <an************@genetibase.com> wrote in message
news:EA**********************************@microsof t.com...
I have checked that... I have no events being fired on Close, Closed, Closing... Dispose etc...
I don't get it...

It's a simple form...

Any more ideas?

Thanks,

Anthony Nystrom

Nov 20 '05 #3

P: n/a
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

"Anthony Nystrom" <an************@genetibase.com> wrote in message
news:A2**********************************@microsof t.com...
No... I can't tell where it's coming from...

Thanks,

Anthony

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.