469,927 Members | 1,978 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Few difficult for me questions about Dispose()

Hi

I have few questions which I would like to ask:

1. When would I place my own code to Form1 : Form method
2. When would I create Dispose method by implementing IDispose - what
is the example scenario. If so, why is better than doing something
different / simpler

What I am trying to understand is the reason for IDisposable
interface. Does implementing this interface really introduces
benefits?
When I work with the data I never really use Dispose - maybe should I
in some cases?

Best Regards
Piotr Kołodziej
Feb 9 '08 #1
1 1113
Tom
I certainly can relate to your questions!!

I posted recently on similar topic and got some wonderful replies from
some of the many gurus who frequent here. Their explanations were of
great help to me. I suggest reading the following thread because I
can't explain it any better than those who helped me out.

FileStream.Close() & GarbageCollection - Memory Leak Question

The above topic was posted on 2/4/08.

I hope it helps. :)

-- Tom

On Sat, 9 Feb 2008 07:08:09 -0800 (PST), Piotrekk
<Pi*************@gmail.comwrote:
>Hi

I have few questions which I would like to ask:

1. When would I place my own code to Form1 : Form method
2. When would I create Dispose method by implementing IDispose - what
is the example scenario. If so, why is better than doing something
different / simpler

What I am trying to understand is the reason for IDisposable
interface. Does implementing this interface really introduces
benefits?
When I work with the data I never really use Dispose - maybe should I
in some cases?

Best Regards
Piotr Kołodziej
Feb 9 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by p988 | last post: by
11 posts views Thread by pradeep_TP | last post: by
9 posts views Thread by Patrick.O.Ige | last post: by
3 posts views Thread by Lance | last post: by
6 posts views Thread by Teresa | last post: by
3 posts views Thread by TheSteph | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.