Mail Archives: djgpp/2000/10/12/12:30:24
Jeffrey_Krupp AT May-Co DOT com wrote:
: 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.
No wonder as this is what fopen() returns when the call fails (NULL)!
: 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).
If those two fopen() calls are identical it'd be very strange. Show us
some (complete compilable) code please.
Right,
MartinS
- Raw text -