From: sproctor AT enter DOT net (Sean) Newsgroups: comp.os.msdos.djgpp Subject: Re: help!: weird Sigsev error Date: Mon, 19 Jul 1999 20:57:49 GMT Message-ID: <379890a5.25453212@news.enter.net> References: <3790BA4F DOT 5EDD4D9A AT club-internet DOT fr> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.16.154.41 X-Original-NNTP-Posting-Host: 207.16.154.41 X-Trace: 19 Jul 1999 16:58:41 -0400, 207.16.154.41 Organization: Enter.Net Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 17 Jul 1999 19:15:59 +0200, huiguan wrote: [snip] >void transferTile_PCX(int x, int y, char Tile[], PCX_picture *dest) >{ > int xcount, ycount, scr_width, yoffset, xoffset; > > scr_width=dest->header.xmax+1; > > for (ycount=0;ycount { > yoffset=y+ycount; > for (xcount=1; xcount<=TILE_WIDTH_PCX; xcount++) > { > xoffset=x+xcount; > >dest->buffer[xoffset-1+yoffset*scr_width]=Tile[xcount-1+ycount*TILE_WIDTH_PCX]; > > }; > }; >} [snip again] >I have made sure that it wasn't due to out of range array indexes. >The strangest about all this, is that it runs fine on a pII 350 mhz >under WinNT4! >(I get the error on a p100 mhz under Osr2). >I even tried to go pure dos and run my program with cwsdpmi but I get >the same error. > >So, if you have any clue of what's wrong with it and how I can solve it, > >I'd be grateful if you could give me a hint. > >Thanks > Only thing I could think of is that your memory isn't getting allocated if you're sure that it stays within memory bounds... Maybe try checking that. Sean