To: djgpp AT delorie DOT com Date: Sat, 29 May 1999 17:37:43 -0700 From: "Brian Ronk" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off X-Mailer: MailCity Service Subject: Re: errors X-Sender-Ip: 205.212.125.125 Organization: MailCity (http://www.mailcity.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com That is the problem, I can't really tell exactly when the error is popping up. I tried stepping through, but that didn't work. The error popped up before a command was executed as far as I could tell. Brian Ronk -- On Sat, 29 May 1999 16:41:10 Sean Middleditch wrote: >Exactly WHEN is the error occuring? As soon as the array is initialized, or >sometime after that (maybe when settingup initial data?). You shouldn't >have any problems, since defualt DJGPP DPMI module CWSDPMI allows virtual >memory. > >Make sure you're not trying to write to an array entry that is outside of >the array bounds (especially check for loops, I've crashed whole systems by >putting the wrong count in one of those). Also, try initializing a single >pointer to your map class, and see if you get the error. If so, there could >be something wrong in your map class constructor. > >Sean Middleditch > of >AwesomePlay Productions >http://members.xoom.com/aweplay >aweplay AT iname DOT com >----- Original Message ----- >From: Brian Ronk >Newsgroups: comp.os.msdos.djgpp >To: >Sent: Saturday, May 29, 1999 2:11 PM >Subject: errors > > >> I have been recieving an error that I am assuming is a memory error. My >program starts up, but never actually runs anything. It quits with a 255 >code, with a message about SIGSEGV. I found out what in my program was >causing the error. I declared an array of size 50 of a type that was about >230444 bytes large. (it is a map class if you are wondering) I figured out >that this won't work on my computer since that needs about 11 megs of >memory, but I can shrink that with no problem. I was wondering if there was >a way to fix this though. I did try my array at a size of 10 and got the >same thing. Do I need to do something with my memory to get this to work? >I'm going to get a new computer in the next couple months, so I am not >woried about memory at this point. Any help would be appreciated. >> >> Brian Ronk >> >> >> Get your FREE Email at http://mailcity.lycos.com >> Get your PERSONALIZED START PAGE at http://my.lycos.com > > Get your FREE Email at http://mailcity.lycos.com Get your PERSONALIZED START PAGE at http://my.lycos.com