Message-ID: <35EE4E1A.5EAD70B5@geocities.com> From: spiritseeker Reply-To: spiritseeker AT geocities DOT com MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Moving variable down in class fixes crash... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 NNTP-Posting-Host: 130.244.172.132 NNTP-Posting-Date: Thu, 03 Sep 1998 09:59:34 MET DST Organization: A Customer of Tele2 Date: Thu, 03 Sep 1998 10:06:50 +0200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I have this simple class: class::sprite { public: long x,y; long type; BITMAP *frame; // yep, i'm using allegro 8-) // and some more stuff below.. } Before I added the "long type" everything was fine but now the program crashes. However, if I move the "long type" below the "BITMAP *frame" everything's working again. Why is this? Thanks, /Jonas