delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/15:14:15

Date: Mon, 10 Mar 1997 13:03:01 -0700 (MST)
From: David May <dmay AT tvi DOT cc DOT nm DOT us>
To: Jeffrey A Studer <jstuder AT flash DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: file max sizes?
In-Reply-To: <01bc2ca1$660fce80$31c9c2d0@bonk>
Message-ID: <Pine.SOL.3.95.970310130029.19917A-100000@curie.tvi.cc.nm.us>
MIME-Version: 1.0

On 9 Mar 1997, Jeffrey A Studer wrote:

> Hello all,
> 
> I am very new to djgpp so pardon my ignorance.   I have been opening and
> trying to read a file using open, and read.  I was wondering if there is a
> maximum size of file that can be opened or read from.  it seems that
> reading 40 bytes from a file at once, occasionally gives a SIGSEGV fault at
> runtime ( I wish i knew what these runtime error messages meant, as well. 
> Is there a FAQ on DOS error messages? ).  I WAS trying to read a minimum of
> 280 bytes, in one pass.  I will resort to reading 4 bytes at a time ,
> unless someone can assist me.
> 

It sounds to me like you are trying to read data into an uninitialized
pointer (works OK with 4 bytes - the size of a pointer - but not with
more).  But I would have to see your code to tell you for sure.

David May
ID Card Adminstrator
Albuquerque TVI

- Raw text -


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