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++ Library support » U++ Core » Write an app to start and kill another app periodically
Re: Write an app to start and kill another app periodically [message #28579 is a reply to message #28577] Tue, 07 September 2010 22:07 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

jpderyck wrote on Tue, 07 September 2010 18:23

another way I checked is to use the Kill() method of the LocalProcess but it runs only once, I mean if I do a Start() method again after a Kill(), the next Kill() method will do nothing ! I suppose the LocalProcess should be destroyed and renewed but how to do that?


Congratulations, you just found a bug Wink I posted the fix in separate thread, so it gets some attention and gets into SVN faster.

As for the <defunct>: In other words, it is a zombie process. It is not really running, it just hangs there until it's parent (which is the controlling app in this case) is terminated. The cause of this is probably an imperfect design of the Detach() function. There is nothing bad about zombies ( sounds funny Very Happy ), but if you want to the controlling app running continuously, there would be a lot of them and it's just not clean solution.

So for now, I would recommend you to stay with Start() and Kill() (after fixing it) if it works for you. There is probably many other solutions to your task, but I would need to know much more about your project to tell you something useful.

Honza
 
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: [BUG&FIX] LocalProcess can not be reused
Next Topic: String.Mid() and Unicode
Goto Forum:
  


Current Time: Wed Jun 18 09:16:36 CEST 2025

Total time taken to generate the page: 0.05548 seconds