Home > .NET > Disposing Objects

Disposing Objects

Although .net framework uses Garbage Collector to clean all the non referenced
objects from the memory, it sometimes need some help in doing that, so make
sure to use the method (Dispose()) on all objects(example: mycmd.dispose()) but only when you are 100% sure that
this object is no longer needed, because if you disposed an object that is still
functioning an Null Reference exception would occur.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: