www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/16/20:08:03

Message-ID: <20010417000741.35462.qmail@web13304.mail.yahoo.com>
Date: Mon, 16 Apr 2001 17:07:41 -0700 (PDT)
From: Rafael Frongillo <rmf9 AT yahoo DOT com>
Subject: unyielding integer assignment error
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hi

I have debugged my program, but not using the gdb as I
never quite figured out how to use it with Allegro...
but I did debug it using output to a file. And I am
even more confused than I was before. Here is what I
discovered:

In the 'reset' function, I have:

void reset() {
  // guy1.dead == 0 at this point
  guy1 = guy(1,100,100);
-- blah --
}

and in the guy::guy(int n, int xx, int yy) function:

guy::guy(int n, int xx, int yy) {
  // but dead == 1712 here
  num = n; x = xx; y = yy; w = 40, h = 51;
-- blah --
}

Somewhere between calling the function and executing
the first line of the function, guy1.dead was changed
to 1712. HOW IS THIS POSSIBLE? I am quite confused.
Please tell me what could be happening here.

-Rafael Frongillo

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

- Raw text -


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