Mail Archives: djgpp/1999/07/19/17:55:22
On Sat, 17 Jul 1999 19:15:59 +0200, huiguan <tai_hg AT club-internet DOT fr>
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<TILE_HEIGHT_PCX; 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
- Raw text -