www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/04/05:18:06

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange problem
Date: Thu, 03 Apr 1997 20:56:56 -0800
Organization: Alcyone Systems
Lines: 22
Message-ID: <33448A18.5BE61729@alcyone.com>
References: <33332701 DOT 1A29 AT uit DOT net>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Chris Larson wrote:

> I'm having a strange problem with DJGPP(most likely my error).  I am
> reading integer and floating point values into a structure from a text
> file.  If I print the variables to the screen while still in the while()
> loop that reads them in (using fscanf()and fseek()) the values print out
> right, but if I print them out after exiting the while() loop they don't
> retain there value(usually = 0). It also does not always work at all but
> will bomb out with the following message.

SEGSEGV means that you're dereferencing bad pointers.  Without a code
snippet of the calls to fscanf and fseek, it's hard to say specifically
what your problem is.  Probably it would be best to post the whole while
loop.

-- 
       Erik Max Francis, &tSftDotIotE / email:  max AT alcyone DOT com
                     Alcyone Systems /    web:  http://www.alcyone.com/max/
San Jose, California, United States /    icbm:  37 20 07 N  121 53 38 W
                                   \
                          "E pur, / sic muove!"
                                 / Galileo Galilei

- Raw text -


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