471,852 Members | 1,103 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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


dear all,

this is a slighly ridiculous thing to have done to my own code, but i've
managed it nonetheless - i call a form with a datagrid, to display search
results. everything was working fine.

i generally do the form closing events actions in the end, so just now, i
tried a "DatagridResults.dispose" along with a couple of other .disposes
thinking i was being tidy and not using up extra resources. then i realised
that my declarations were all in the main module so maybe that wasn't smart,
and so i undid all the disposes.

now, my search form loads correctly the first time, and then for the second
time i get this error:

An unhandled exception of type 'System.ObjectDisposedException' occurred in
Additional information: Cannot access a disposed object named

i've searched and searched, but i can't find a dispose statement anywhere!
what do i do? please help!!


Message posted via DotNetMonster.com

Apr 19 '07 #1
0 955

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by TomPel | last post: by
reply views Thread by Richard Blewett [DevelopMentor] | last post: by
3 posts views Thread by Martin Pöpping | last post: by
2 posts views Thread by Bernard Borsu | last post: by
reply views Thread by aboka | 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.