delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/23/04:00:37

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: apendzich AT plusnet DOT pl (Artur)
Newsgroups: comp.os.msdos.djgpp
Subject: Djgpp, allegro and large datafile
Date: 23 Aug 2004 00:50:01 -0700
Organization: http://groups.google.com
Lines: 22
Message-ID: <8abf3e27.0408222350.41002bd4@posting.google.com>
NNTP-Posting-Host: 80.51.254.226
X-Trace: posting.google.com 1093247401 21936 127.0.0.1 (23 Aug 2004 07:50:01 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 23 Aug 2004 07:50:01 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

HI!
First, sorry for my English; foreign langueges are not my strong
point.

I have one big problem. I'm am working with djgpp, allegro 4.3,
cwsdpmi 5 under DOS6.22 on P3, 256MB RAM. I am writing a game and I'm
using a lots of bitmaps, souns etc. That's all is in one large
datafile. While its size is about 5 MB, everything works excelent but
I had to add a new set of bitmaps to it and datafile' size is about
6,7MB now. I can load datafile without problems. Problem appears when
I try to call a function inside my program with values as parameters (
int some_fun( long double var1, long double var2, int var3)). During
debugging I've noticed that although I call this function in this way
: some_func(0,0,0),  var1, var2 and var3 are random values inside
function. Is it possible that stack is overwritten by heap? I was
calling a _go32_dpmi_remaining_physical_memory function and it shows
that I have a lot of space (37MB) still free. Could anybody help me
with my problem?
I would be gratefull:) 
  
Artur
apendzich AT plusnet DOT pl

- Raw text -


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