cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/17/12:57:42

From: "Patrick Chen" <pck66 AT pd DOT jaring DOT my>
Newsgroups: comp.os.msdos.djgpp
Subject: memory allocation: program stall.
Date: Wed, 17 Jul 2002 18:01:53 +0800
Organization: Unconfigured
Lines: 24
Message-ID: <ah3fcl$jt2$1@news5.jaring.my>
NNTP-Posting-Host: j225.crc24.jaring.my
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello folks,
    I am using Rhide IDE and having problem  allocating memory. The graphic
display program involve the following segment which I suspect could be the
problem.
The program run ok just once, then after exit with return 0 from main(good
status), it couldn't be executed a second time from Rhide. The Rhide get
hanged, mouse cannot activate any menu command at all. Have to quit Rhide
and run the program again. Sometimes the error bin/ld.exe cannot find
svga02.exe appear and need to restart the computer again.  Even the
free(offscreen) at the end does not make a difference.
Hope some of you can help in solving this. Is this a legal operation for
640*480 size?

byte *offscreen;
offscreen= (byte*)malloc((640*480)*sizeof(byte));
..
..
free(offscreen)

Thank you
Patrick



- Raw text -


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