From: Erik Max Francis 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 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 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