Mail Archives: djgpp/2000/01/13/16:28:57
jazir <entropic AT mpx DOT com DOT au> writes:
> Yep I can do that. Firstly I'd like to say that YAMD is a great program,
> as it helped me find memory leaks...but there were no msg'es about accessing
> memory not belonging to my program. Once I had the leaks sorted, the only
> output was for successful allocation and deallocation of blocks.
Are you running in plain DOS, and using CWSDPMI as your DPMI server?
If not, that could be your problem; YAMD requires some special DPMI
services that Windows doesn't provide.
> In fact, when I compiled my program with YAMD, everything worked as expected.
> There was no crash..that could just mean that my bug goes back to doing no
> damage, as in djgpp v2.02, but YAMD should still detect it... i'm puzzled.
This is just what I'd expect if you're using Windows. YAMD allocates
an entire page (4K) after your block. Normally this is protected, so
an access will cause a fault, but if it is not (as on Windows), your
program will have another 4K to smash harmlessly.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -