I'm trying to see if Dr Memory can detect memory access faults. This is my test program:
---------------------------------------------------
#include <stdio.h>
int main(int argc, char *argv[])
{
char a[32];
int k;
for(k = 0; k < atoi(argv[1]); k++) a[k] = 0;
return 0;
}
---------------------------------------------------
When I start it like this, everything is fine and Dr Memory doesn't report any problems
(as expected):
$ drmemory -- test.exe 32
When I try to provoke an access fault by starting it like this, however, Dr Memory hangs:
$ drmemory -- test.exe 33
This results in the following output:
~~Dr.M~~ Dr. Memory version 2.3.0
~~Dr.M~~ Running "test.exe 33"
And then Dr Memory just hangs. No access violation is reported and Dr Memory hangs forever.
Any ideas what's wrong there? I'm on Windows 7.
--
Best regards,
Andreas Falkenhahn mailto:
and...@falkenhahn.com