Quote Originally Posted by wysota View Post
Why would Qt inform you about a leak in C code that has nothing to do with it? Qt is set of classes, not a new language/compiler/put-whatever-you-want-here. If you leak memory in your code, use a tool for detecting memory leaks in applications, not an application development framework.

http://www.google.com/search?q=windo...leak+detection
thank you for very "informative" link and answer.
Why shouldn't Qt inform you about a leak in C code?

Check this microsoft stuff:

#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

int main(int argc, const char *argv[])
{
char* a = new char[10];
_CrtDumpMemoryLeaks();
return 0;
}

Detected memory leaks!
Dumping objects ->
...normal block at 0x00383858, 10 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD
Object dump complete.
Is it so hard? I dont need more ;-)