Mail Archives: djgpp/2000/01/12/16:42:22
> 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).
free(var) continues to crash when memory was not originally allocated by malloc, -
memset seems to work as an alternative. with respect to free(var+4); as I understood
it, this was a necessity in Borland because you could never guaruntee deallocating as
much as you had allocated.
Anyhow, thanks for the crosspostings on this, my problem has been resolved.
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 -