TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: all
from: Bob van der Poel 76510,2203
date: 1990-12-17 21:07:31
subject: #malloc() problem

#: 8809 S3/Languages
    17-Dec-90  21:07:31
Sb: #malloc() problem
Fm: Bob van der Poel 76510,2203
To: all

Does anyone know of any problems with the malloc() C function. I'm finding that
my data (saved in a malloc()ed buffer) is corrupted from time to time. I
suspect a wild pointer in MY code, but I thought I'd check since I can't find
the problem here. Also, I noticed that memory returned with free() does not
seem to get reused unless the request size is identical to the original. Is
there a fix for this? Or does it clear up when there is no more easy memory
available?

BTW, this question concerns the 6809 C compiler using the Krieder library, but
since I hope to port the code to 68K any comments in that area will also be
appreciated.



There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.