What sucks is that using Visual Studio's method, it picks up the memory leaks just fine, but doesn't tell me where in the world they originated from!
Qt Code:
  1. #define _CRTDBG_MAP_ALLOC
  2. #include <stdlib.h>
  3. #include <crtdbg.h>
  4. int main () {
  5. _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
  6.  
  7. char *pChar = new char[30];
  8. pChar = 0;
  9. int *pInt = new int;
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode 
Detected memory leaks!
Dumping objects ->
{61} normal block at 0x00335FD8, 4 bytes long.
Data: < > CD CD CD CD
{60} normal block at 0x00332A00, 30 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.
The program '[1380] exceptions.exe: Native' has exited with code 0 (0x0).
Anyone know what I'm doing wrong here?
Paul