Memory Leak

  • Thread starter Thread starter Trev
  • Start date Start date
T

Trev

Is the file "Microsoft Visual Studio .NET 2003\VC7\INCLUDE\crtdbg.h"
(specifically, the new operators) used in any way, shape or form in C#
? I am involved in writing an app that uses managed C++ and C# and I'd
just like to verify that the memory leaks we're getting aren't
connected with the C# side of things. I know the Garbage Collector is
supposed to stop memory leaks, but I am stumped.
 
Is the file "Microsoft Visual Studio .NET 2003\VC7\INCLUDE\crtdbg.h"
(specifically, the new operators) used in any way, shape or form in C#?

No


Mattias
 
First, header files are not used by C#, so your first assumption is correct.
However, your second assumption is *not* correct. Garbage Collection
*minimizes the possibility* of memory leaks, but they are still entirely
possible. For example, some managed classes encapsulate or use unmanaged
resources, and implement the IDisposable interface. These should always be
disposed. There are some other cases in which memory leaks can result as
well.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

Never trust a dunderhead with a blunderbuss.
 

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

Back
Top