468,539 Members | 1,715 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,539 developers. It's quick & easy.

Error when App Closes

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
3 868
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
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
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.

Similar topics

1 post views Thread by nicole bissell | last post: by
3 posts views Thread by SK | last post: by
reply views Thread by =?Utf-8?B?R2VvcmdpYVRY?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.