ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/09/06:10:03

Message-ID: <001701bec9e6$17d74ec0$4c2702c4@hultquist>
From: "Carl Hultquist" <the_xeer AT iname DOT com>
To: <djgpp AT delorie DOT com>
Subject: Memory problem in DJ
Date: Fri, 9 Jul 1999 10:35:12 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_0014_01BEC9F6.B97D7FA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all.

I'm trying to create a GUI program using the Allegro game library -- =
this involves much creating and destroying of lists with variable length =
(i.e. claiming and releasing memory throughout the program). The amount =
of memory I'm using isn't much: a couple of Mb (including the graphics), =
and the error only creeps in once I've looped through the main code =
about 4 times (i.e. creating and destroying these lists 4 times). Then =
suddenly the thing crashes with the following trace:

in function __djgpp_hw_lock_end+275

followed by a trace back through my own functions. This also happens if =
I constantly load bitmaps and destroy them again, but the error occurs =
in the internal bitmap loading routines of Allegro so it appears that =
it's not just me causing the problem! Does anyone have any ideas what's =
happening and how I could fix it?

Thanks.

Carl

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-
tHe_xEeR
e-mail: the_xeer AT iname DOT com
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-


------=_NextPart_000_0014_01BEC9F6.B97D7FA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#c8d0d0>
<DIV><FONT size=3D2>Hi all.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I'm trying to create a GUI program using the Allegro =
game=20
library -- this involves much creating and destroying of lists with =
variable=20
length (i.e. claiming and releasing memory throughout the program). The =
amount=20
of memory I'm using isn't much: a couple of Mb (including the graphics), =
and the=20
error only creeps in once I've looped through the main code about 4 =
times (i.e.=20
creating and destroying these lists 4 times). Then suddenly the thing =
crashes=20
with the following trace:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>in function __djgpp_hw_lock_end+275</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>followed by a trace back through my own functions. =
This also=20
happens if I constantly load bitmaps and destroy them again, but the =
error=20
occurs in the internal bitmap loading routines of Allegro so it appears =
that=20
it's not just me causing the problem! Does anyone have any ideas what's=20
happening and how I could fix it?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Carl</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000=20
size=3D2>-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-<BR>tHe_xEeR<BR>e-mail: <A=20
href=3D"mailto:the_xeer AT iname DOT com">the_xeer AT iname DOT com</A><BR>-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<BR>=
</FONT></DIV></BODY></HTML>

------=_NextPart_000_0014_01BEC9F6.B97D7FA0--

- Raw text -


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