www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/13/06:17:28

Date: Thu, 13 Nov 1997 13:17:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Oon Lin <sci-okl AT jcu DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: fopen() gives Segmentation Fault. Help ?
In-Reply-To: <Pine.OSF.3.96.971113125536.13260B-100000@barra.jcu.edu.au>
Message-ID: <Pine.SUN.3.91.971113131445.23653E-100000@is>
MIME-Version: 1.0

On Thu, 13 Nov 1997, Oon Lin wrote:

> I'm having problem using fopen() in DJGPP. What happened is that I made a
> first fopen() call to open a file for reading only and that works
> fine..and when I call the second fopen() (after I closed the first
> fopen())  it just gives me General Protection Fault with Segmentation
> violation .... anybody has any ideas ??

Is the posted source *exactly* the same source that causes this on your 
machine?  If not, please post the precise source that doesn't work.  The 
source you posted is perfectly correct. 

Please also post the stack dump printed when the program crashes.  It 
might include crucial hints to the cause of the problem.

- Raw text -


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