From: Darkstar Newsgroups: comp.os.msdos.djgpp Subject: I NEED HELP! Date: Mon, 10 May 1999 08:11:08 -0400 Organization: Channel 1 Communications Lines: 127 Message-ID: <3736CCDB.5528948F@user1.channel1.com> NNTP-Posting-Host: xdial134.channel1.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello to all the DJGPP gurus out there. I need help with a set of functions that seem to have a wandering pointer somewhere but I don't seem to be able to find it. Here are the offending functions. a c++ struct. The function of this struct is to hold 16x16 images for sprite animation. Screen is a 320x200 buffer of unsigned char(uns8) MAXFRAMES is 100 struct frame16 { int number; uns8 *frames[MAXFRAMES]; frame16(int i); ~frame16(); void loadframe(pcx_picture pic,int i,int x,int y); void drawframe(int i,int wx,int wy,int sx,int sy, int sox,int soy,int sw,int sh,uns8 *screen); void ncdrawframe(int i,int x,int y,uns8 *screen); }; // this is the constructor for a frame frame16::frame16(int i) { int n; number=i; for(n=0;n