PDA

View Full Version : why memescape can't find memory leaks ?



room502
12-23-2008, 05:51 PM
i program is following :

main()
{
int *P ;

*p= 12345;

}


this p pointer is not new memory,why memscape can't find it ?

PeterT-RogueWave
01-07-2009, 03:04 PM
Memory debugging ONLY see's newly allocated and de-allocated memory. If the program has not done a malloc, memscape, or TotalView's memory debugger will not know about it. At best, TotalView should tell you that 'p' is unallocated, but you don't quite have that view of variables inside memscape.

Does that make sense?

Regards,