Mail Archives: djgpp/2000/10/12/11:44:05
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.
- Raw text -