delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/11/17:53:45

From: "jansb000" <jansb000 AT wxs DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Need help with very nasty bug
Date: Wed, 11 Jul 2001 21:40:21 +0200
Organization: Planet Internet
Lines: 34
Message-ID: <9ii9h3$r9om$1@reader03.wxs.nl>
NNTP-Posting-Host: ipc3797b20.dial.wxs.nl
X-Trace: reader03.wxs.nl 994879843 894742 195.121.123.32 (11 Jul 2001 19:30:43 GMT)
X-Complaints-To: abuse AT wxs DOT nl
NNTP-Posting-Date: 11 Jul 2001 19:30:43 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In a program that I am working on I have a class that looks like this:

class MAPTILE  {
 private:
   BYTE  tile_idx;
   BYTE  fringe_idx;
   BYTE  build_idx;
   BYTE  top_idx;
   PROPS props;    // typedef to STL: bitset<32> props
   // ULONG spr;
 public:
   // Constructors ...
   // Destructor ...
   };

All test programs using this class work as they should and I even build a
working application with it.

Recently I added the line "ULONG spr" and to my suprise the application that
I spoke about doesn't work any more. Even when I recompile all source files,
generating new .o files.

My program is now quite large and I have no clue as where I should start
with finding the bug. I fail to understand how this one line can introduce a
bug. Note that I made no other changes apart from this single line. I even
didn't change the constructor and destructor.

Any tips?

PS: All code can be found at sourceforge: http://sf.net/projects/wcs-jabe by
following the links to CVS. The working application can be downloaded from
sourceforge too. It is a MAP editor.


- Raw text -


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