Date: Sun, 19 Jan 1997 16:54:26 +0200 (IST) From: Eli Zaretskii To: Tan cc: djgpp AT delorie DOT com Subject: Re: General Protection Fault After 2000 movedata(); In-Reply-To: <01bc0384$26a2c860$8713c2cf@586> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 17 Jan 1997, Tan wrote: > Call frame traceback EIPs: > 0x0000a161 > 0x00001e60 > 0x00002fd9 > 0x00003766 FYI, it is always better to post the traceback after running `symify', so that others could see where exactly did your program crash. > for (i=0; i { > movedata(s_BMP.segment, s_offset, d_BMP.segment, d_offset, > length); > s_offset = s_offset + s_BMP.x2 * bytes_per_pixel; <<<<<<<< > d_offset = d_offset + d_BMP.x2 * bytes_per_pixel; <<<<<<<< If this is an *exact* copy of your source, these should be s_BMP.bytes_per_pixel and d_BMP.bytes_per_pixel, right?