Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
EventGhost Windows process not ending at exit
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: EventGhost Windows process not ending at exit
so now we know what plugin is causing the problem
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: EventGhost Windows process not ending at exit
you can give this a try..
replace the current ProcessWatcher __init__.py file with this one.
replace the current ProcessWatcher __init__.py file with this one.
- Attachments
-
- __init__.py
- (3.44 KiB) Downloaded 133 times
Re: EventGhost Windows process not ending at exit
what did you change in the code?kgschlosser wrote:you can give this a try..
replace the current ProcessWatcher __init__.py file with this one.
Automation is life.
Win7 64bit
EG: v0.5.0-rc4
Win7 64bit
EG: v0.5.0-rc4
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: EventGhost Windows process not ending at exit
i changed the code to use threading.Event for a couple of different things.. one was the sleep statement that it was previously using which i personally really do not like to use because it actually stops the thread where threading.Event.wait even tho doing the same thing as sleep has the ability to stop sleeping if you want to exit the thread. but also allows for being "flagged" which is what exits the polling loop. the way i set it up is a tried and true way of exiting a thread loop. and the way i set it up will make sure that the thread fully exists before starting a new one in just in case you disable and then re enable the plugin.
Re: EventGhost Windows process not ending at exit
The EG process exists faster now, thanks.kgschlosser wrote:i changed the code to use threading.Event for a couple of different things.. one was the sleep statement that it was previously using which i personally really do not like to use because it actually stops the thread where threading.Event.wait even tho doing the same thing as sleep has the ability to stop sleeping if you want to exit the thread. but also allows for being "flagged" which is what exits the polling loop. the way i set it up is a tried and true way of exiting a thread loop. and the way i set it up will make sure that the thread fully exists before starting a new one in just in case you disable and then re enable the plugin.
Automation is life.
Win7 64bit
EG: v0.5.0-rc4
Win7 64bit
EG: v0.5.0-rc4
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: EventGhost Windows process not ending at exit
I wanted to let you know there is no need to save the processwatcher plugin. The fix for the process not exiting has been added and will be included in the next release of EG
