delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/20/19:40:14

From: abs90 AT hotmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Memory allocation?
Date: Fri, 20 Nov 1998 19:24:30 -0500
Organization: Queen's University, Kingston
Lines: 14
Message-ID: <3656083E.25F5549E@hotmail.com>
NNTP-Posting-Host: du137.n239.queensu.ca
Mime-Version: 1.0
X-Mailer: Mozilla 4.06 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Well I'm having some problems with memory allocation.  I have written my
own graphics library and it works fine, but when my programs get too
complicated I start getting unexpected crashes due to memory allocation
errors.  I'm sort of a self taught programmer so that is part of my
trouble.  When is it necessary to allocate memory?  Do I have to do it
for all structures and arrays I declare (I usually just end up using
malloc on everything and not knowing when it's necessary and when it's
not)?  Basically, I want to know what is handled for me in DJGPP and
what is not?  I know it's a basic question, but it's giving me a lot of
trouble.  Any help or docs on memory allocation in C (DJGPP
specifically) would be greatly appreciated.

Thanks

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019