|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » I keep getting the same "cannot open exe for writing" error...
Re: I keep getting the same "cannot open exe for writing" error... [message #50655 is a reply to message #50651] |
Thu, 29 November 2018 13:41 |
|
peterh
Messages: 108 Registered: November 2018 Location: Germany
|
Experienced Member |
|
|
The question is, if your process needs more time than 3 seconds to terminate.
The other question is can it been terminated with this method at all?
If it hangs in blocking IO in kernel mode, possibly it cannot be terminated.
I do regulary see applications that do serial IO via the .NET and if these crash, then
Windows does not shut down because it waits for the process forever.
This is why I proposed tho give report to the user.
There could be a message box:
"Process termination timeout"
"Wait and retry?" "Ignore and try to Close anyway"
WaitForSingleObject should return these Values:
WAIT_OBJECT_0 means the thread has stopped.
WAIT_TIMEOUT means the thread is running.
Not that I have practical experience with this. This is what I found in MSDN.
Edit:
Just for explanation:
Even if the processhandle is closed and the process detached the file cannot been deleted or modified as long as the process is running.
This is, because windows needs the .exe file for virtual memory paging, when the process is still running.
In this case the file could be renamed and marked for deletion.
[Updated on: Thu, 29 November 2018 16:22] Report message to a moderator
|
|
|
|
|
I keep getting the same "cannot open exe for writing" error...
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Fri, 08 June 2007 17:06
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Tue, 06 November 2018 17:06
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Tue, 06 November 2018 19:05
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Wed, 07 November 2018 12:44
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Wed, 07 November 2018 16:44
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sun, 25 November 2018 17:40
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Mon, 26 November 2018 10:54
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Mon, 26 November 2018 12:45
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Mon, 26 November 2018 17:10
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Tue, 27 November 2018 00:14
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Tue, 27 November 2018 08:54
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Tue, 27 November 2018 09:42
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Tue, 27 November 2018 09:50
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Tue, 27 November 2018 10:07
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Tue, 27 November 2018 13:25
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Tue, 27 November 2018 21:09
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Wed, 28 November 2018 10:49
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Wed, 28 November 2018 10:57
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Thu, 29 November 2018 12:23
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Thu, 29 November 2018 14:10
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Thu, 29 November 2018 13:41
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Fri, 30 November 2018 09:01
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Fri, 30 November 2018 11:48
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Wed, 05 December 2018 21:52
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Wed, 05 December 2018 23:09
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Wed, 05 December 2018 23:40
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Thu, 06 December 2018 10:32
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Thu, 06 December 2018 10:35
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Thu, 06 December 2018 19:23
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Thu, 06 December 2018 20:53
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sat, 08 December 2018 17:00
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sat, 08 December 2018 18:33
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sat, 08 December 2018 19:27
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sat, 08 December 2018 19:50
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Sun, 09 December 2018 10:01
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Sun, 09 December 2018 11:07
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Fri, 04 January 2019 09:42
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Sun, 13 January 2019 01:02
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Sun, 13 January 2019 19:19
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: peterh on Mon, 14 January 2019 11:31
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Mon, 14 January 2019 11:52
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Mon, 14 January 2019 22:49
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Sat, 19 January 2019 17:49
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: mirek on Sat, 19 January 2019 19:22
|
|
|
Re: I keep getting the same "cannot open exe for writing" error...
By: koldo on Sun, 20 January 2019 14:52
|
Goto Forum:
Current Time: Sun Apr 28 07:48:17 CEST 2024
Total time taken to generate the page: 0.04983 seconds
|
|
|