Advertisement

04.30.2008 at 01:43PM PDT, ID: 23366857
[x]
Attachment Details

setting a object to null vs calling a dispose() function

Asked by mrwhipple in C# Programming Language, Microsoft Visual C#.Net, Visual Studio .NET 2005

Tags: C#

Hello,

I'm looking at optimizing code and I was wondering what was the best way to dispose of objects.  Currently a lot of the code is setting things equal to null.  But I was wondering if calling the dispose method of an object would be a better way to do release all memory that the object was taking up?

Thanks!Start Free Trial
 
Loading Advertisement...
 
[+][-]04.30.2008 at 01:48PM PDT, ID: 21474413

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 02:15PM PDT, ID: 21474608

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 02:17PM PDT, ID: 21474617

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 02:20PM PDT, ID: 21474638

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 06:14PM PDT, ID: 21475830

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 09:11PM PDT, ID: 21476479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 10:22PM PDT, ID: 21476652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 11:24PM PDT, ID: 21476807

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Microsoft Visual C#.Net, Visual Studio .NET 2005
Tags: C#
Sign Up Now!
Solution Provided By: CyrexCore2k
Participating Experts: 5
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628