www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/03/05:00:46

Message-ID: <35EE4E1A.5EAD70B5@geocities.com>
From: spiritseeker <spiritseeker AT geocities DOT com>
Reply-To: spiritseeker AT geocities DOT com
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Moving variable down in class fixes crash...
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019