From: Jeffrey_Krupp AT May-Co DOT com Subject: zero file descriptors To: djgpp AT delorie DOT com Date: Thu, 12 Oct 2000 11:41:50 -0400 Message-ID: X-MIMETrack: Serialize by Router on MD110052/SERVERS/MAYCO(Release 5.0.2b |December 16, 1999) at 10/12/2000 10:41:59 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com I am having a problem with fopen where it opens a file (returns a valid file pointer), but then its file handle is zero. When this happens, I can't fseek,fread,or fwrite. The same is true for a socket() call. As a work-around after the original fopen, I have been re-opening the same file, getting an actual valid handle/pointer, then closing the original pointer(the one with the zero handle). Is this a compiler bug, or am I using something incorrectly? I am using v2 and am running this in Caldera's DR-DOS 7.0 on a 486. I have also tried the same program in MS-DOS 5.0 - same results. Any ideas? Thanks.