From: "Tony" Newsgroups: comp.os.msdos.djgpp Subject: A weird FWRITE() problem... Date: 13 Apr 1998 03:10:54 GMT Organization: OnRamp, http://www.onramp.net/ Lines: 12 Message-ID: <01bd6681$a7519d40$ddc832ce@tonythed> NNTP-Posting-Host: ppp13-29.dllstx.onramp.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk For some reason the fwrite() function is over writing the FILE structure the the pointer is pointing to. The pointer value is not changed but the data of the FILE structure is being over written with data from the buffer. Everything is correct just before the fwrite() function is executed. After execution, the file is written correctly but the FILE struc data is now trashed with data from the buffer. It all occurs during the execution of the function itself. I'm running inside RHIDE, using DR-DOS O/S, and CWSDPMI. Anyone got any ideas??? This doesn't seem to make any sense. Thanks, Tony.