www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/01/03:43:46

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SIGSEGV when doing file operations
Date: Mon, 31 Mar 1997 22:05:50 -0800
Organization: Alcyone Systems
Lines: 25
Message-ID: <3340A5BE.20C84B9A@alcyone.com>
References: <5hp58q$cn9 AT nexp DOT crl DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kyle R. Hofmann wrote:

> Call my function OpenFile, which:
> -Opens the file.
> -Reads 4 bytes using fread() and checks if they are what they should be.
> -Reads 4 more bytes using fread() and stores them.
> -Returns.
> Call my function ReadData, which promptly crashes when doing anything
> file related.

Without sample code it's impossible to say what the problem is.

It's unlikely, though still possible, that the problems are in the standard
libraries, since all sorts of people do file I/O.

Post the smallest program you can make that reproduces the problem and
we'll take a look at it.

-- 
       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