View Full Version : is there a codeguard in other IDE/Compilers aside from BCB?

12-28-2005, 11:03 PM

I am new here. I am doing some development using Borland C++ and this forums provides a good help and information for me.

I am searching for quite a while now and, i would just like to ask if it is only Borland C++ builder has the functionality of a codeguard? wherein you would see an error when you forget to delete a dynamic memory allocation. example...

#include <iostream>
int main(){
char * x = new char(); //would cause codeguard error because x is not deleted.
return 0;

i tried looking on IDE/Compilers of Microsoft, Dev Cpp(MinGW). as this is the more popular ones but they proved that they don't have such functionality? do they have some alternatives? i just would like to do a little programming at home so it needs to be free and i could not afford to have a borland builder IDE.


12-28-2005, 11:09 PM
Well Visual Studio has the capability to detect memory leaks (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxcondetectingisolatingmemoryleaks.asp)

12-28-2005, 11:16 PM
hmm thanks for the link..

it is quite different than i'm used to in borland but i think this would work fine...

how about devCpp(minGW) would they also have memory leak detection?