delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/16/20:04:41

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Perculiar bug fix?
Date: Mon, 11 Aug 1997 07:08:55 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 25
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33EEF2C7.1D3B@cornell.edu>
References: <33EEE76F DOT 2F4B904 AT NO_SPAMccds DOT cc DOT monash DOT edu>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0046.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Lyle wrote:

> I have recenlty come across a perculiar occurence. I posted a message
> with an "unexplainable" sigsegv fault. Sure, i knew it had to be
> something with my program but what? Well the explanation is quite
> trivial. For some reason, the DJGPP compiled version wasn;t reading my
> configuration files properly. The configuration files were written by
> the exact same code, compiled under Borland TC++ V3.0? Is this normal?
> Is there something i;m doing wrong (most certainly!).

are your config files binary? are you reading them in byte-by-byte and
setting up your structures, or are you reading in aggregates? presumably
the latter. then that code will break in any compiler whose data sizes
and layout of structures does not match tc. remember, djgpp is 32 bit
whereas tc is 16.

-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
*******************************************************************

- Raw text -


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