Page Dispose

  • Thread starter Thread starter mac
  • Start date Start date
M

mac

Hi!


Please help me on this, How can I dispose all the object variables I
recently declared on my form ?
seuppose I have this code.



Private dt as datatable
Private ds as dataset


My questions is how can I dispose this private variables before closing the
page?



Thanks and Regards
Mac
 
Why shall you care? Dotnet will do it for you automatically. Some things,
like database connections, should be disposed explicitely, but dataset and
datatable are regular classes.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dispose variables to free memory 1
Disposing 4
Dispose 4
Sql server deadlock retry 6
Private DataTable For Pages ? 1
Sharing private member 1
Suggestions regarding improving DAL 2
Getting dataset? 5

Back
Top