472,127 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

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 904
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.