Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 #50618 is a reply to message #50617] Tue, 27 November 2018 00:14 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3153
Registered: August 2008
Ultimate Member
Hello Peterh

Good find.

Quote:
The TerminateProcess() systemcall is asynchronous and returns immediately, eventually before the process is actually terminated.
Also it kills all threads.
(If the documentation is correct)
TerminateProcess() does not kill child processes.

To handle that Bazaar/Functions4U includes TerminateChildProcesses(). It kills all processes tree.

It may be dangerous, as it does not follow the proper killing order but, as using TerminateProcess() is a brute force process end, TerminateChildProcesses() just tries to do the same thing, but in depth.

Edit: Similar focus is used in PauseChildThreads() with surprising effectivity even for child GUI software.


Best regards
IƱaki

[Updated on: Tue, 27 November 2018 00:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: error: expected unqualified-id before '=' token
Next Topic: clang or MinGW
Goto Forum:
  


Current Time: Thu Aug 06 23:51:32 CEST 2020

Total time taken to generate the page: 0.01467 seconds