| | |
Windows Delayed Write failed
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 3
Reputation:
Solved Threads: 1
Hi Everyone,
I am new user for this community and as a trend when we are in trouble then we remember friends.
Don't mind .
My Question: My application creates trace.txt file which contain debugging information when app. is running but in real production there may be a problem because there trace files are created on another system using MAP drive and if there is a network failure then windows shows an eror dialog box> " Windows Delayed Write failed .... " to create a txt file we are using fprintf().
What i expect after restore a network connection it should work proper but right now i think they have to restart an application which is really BAD.
Can any body help me ?
Thanks
Nishant Soni
ISC Software PVT Ltd.
INDIA
I am new user for this community and as a trend when we are in trouble then we remember friends.
Don't mind .
My Question: My application creates trace.txt file which contain debugging information when app. is running but in real production there may be a problem because there trace files are created on another system using MAP drive and if there is a network failure then windows shows an eror dialog box> " Windows Delayed Write failed .... " to create a txt file we are using fprintf().
What i expect after restore a network connection it should work proper but right now i think they have to restart an application which is really BAD.
Can any body help me ?
Thanks
Nishant Soni
ISC Software PVT Ltd.
INDIA
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
> What i expect after restore a network connection it should work proper
the problem is that the FILE structure that is being passed to fprintf is no longer usable. it contains an operating system file descriptor (handle) which is not valid any more. you really do not need to restart the application. instead you could just close the file and reopen it afresh. (perhaps have a background thread waiting on an event to do this at the right time).
the problem is that the FILE structure that is being passed to fprintf is no longer usable. it contains an operating system file descriptor (handle) which is not valid any more. you really do not need to restart the application. instead you could just close the file and reopen it afresh. (perhaps have a background thread waiting on an event to do this at the right time).
Last edited by vijayan121; Feb 27th, 2008 at 9:13 am.
that's the wrong test for this problem. The file pointer is only invalid, very similar to using an unitialized pointer.
>>is there any other way to test it.
Probably check the return value of fprintf(). If it failed then most likely you have the problem you are describing.
The way I got around this was to open the file before each write then close it again after the writes were finished -- this was a logging program.
>>is there any other way to test it.
Probably check the return value of fprintf(). If it failed then most likely you have the problem you are describing.
The way I got around this was to open the file before each write then close it again after the writes were finished -- this was a logging program.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Cisco Security Agent V4.5 build 565 and Windows delayed write failed: (Viruses, Spyware and other Nasties)
- Send data on a serial port (C++)
- Strange USB External HD Behaviour (Storage)
- Blue screen nightmare - help appreciated! (Windows NT / 2000 / XP)
- Cisco Security Agent V4.5 build 565 and Windows delayed write failed: (Windows NT / 2000 / XP)
- HDD Problem -- Delayed Write Failed (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Class Template used for stack
- Next Thread: Area and Point Inside Rectangle, Triangle, Circle, Ellipse.
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






