From: Lyle Newsgroups: comp.os.msdos.djgpp Subject: Re: Perculiar bug fix? Date: Wed, 13 Aug 1997 20:48:26 +1000 Organization: Monash Uni Lines: 45 Message-ID: <33F190F9.6033D3FA@NO_SPAMccds.cc.monash.edu> References: <33EEE76F DOT 2F4B904 AT NO_SPAMccds DOT cc DOT monash DOT edu> <33EEF2C7 DOT 1D3B AT cornell DOT edu> NNTP-Posting-Host: ascend-1-30.cc.monash.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, A. Sinan Unur wrote: > > 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/ \ ~/ > ******************************************************************* yer, i was just reading it in straight to the structure. As i was just informed, ints are 32 bits in djgpp and 16 in tc. Thanks for your reply, Lyle -- NOTE: Remove The comment "NO_SPAM" To Reply via Email! -------------------------------[ **NEW ADDRESS** lpak1 AT ccds DOT cc DOT monash DOT edu DOT au] " Hello Chevra Kadish, You Kill 'em, We Chill 'em " .----, | oO | HTTP://www-personal.monash.edu.au/~lpak1/ | \/ | `----'