Mail Archives: djgpp/2000/01/12/09:01:08
>
> What was the previous version of DJGPP you had installed? If it was
> v2.01 (not v2.02), then what you see is a bug in your program that
> simply went unnoticed before v2.02. Version 2.02 introduced a new,
> more space-efficient version of malloc/free, which is now much less
> tolerant to programs that write beyond the end of an allocated buffer,
> or free a buffer more than once.
>
> Try using some malloc debugger, like YAMD, to hunt down that bug.
To clarify, I upgraded from v2.01, and am using code originally written for Borland
C, in which it is sometimes necessary to free some more memory than was originally
allocated (i.e. free(var+4);). Given that I kept this style, the explanation above
probably accounts for my problems, thanks a lot for pointing this out ( - in
advance, I haven't tested my code without the modification yet).
Mark
--
-----------------------------------
Mark A. Elliott
Universität Leipzig.
Institut für Allgemeine Psychologie.
Seeburgstr. 14/20,
D-04103 Leipzig.
Germany
Tel: ++49 (0)341 97 359 57
Fax: ++49 (0)341 97 359 69
email: elliott AT uni-leipzig DOT de
-----------------------------------
- Raw text -