Dispose or not dispose ?

G

Guest

Hi, I'm quite new to compact framework but I've read several articles on it,
I've explored codes and so on.

What's is not clear to me is if it is better or not to call the dispose
method when an object is not more used.

I read that the garbage collector make the job for us but in other articles
I saw some code with the calls to the dispose method.

Which is the rule to follow ? Dispose or not dispose ?

Thank you in advance.

Keven Corazza
 
D

Daniel Moth

If the object exposes a Dispose method then call it when you are done with
it.

Cheers
Daniel
 

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

Top