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.

EventGhost Windows process not ending at exit

If you have a question or need help, this is the place to be.
User avatar
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

Post by kgschlosser »

so now we know what plugin is causing the problem
If you like the work I have been doing then feel free to Image
User avatar
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

Post by kgschlosser »

you can give this a try..

replace the current ProcessWatcher __init__.py file with this one.
Attachments
__init__.py
(3.44 KiB) Downloaded 133 times
If you like the work I have been doing then feel free to Image
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: EventGhost Windows process not ending at exit

Post by skribb »

kgschlosser wrote:you can give this a try..

replace the current ProcessWatcher __init__.py file with this one.
what did you change in the code?
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
User avatar
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

Post by kgschlosser »

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.
If you like the work I have been doing then feel free to Image
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: EventGhost Windows process not ending at exit

Post by skribb »

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.
The EG process exists faster now, thanks. :D
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
User avatar
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

Post by kgschlosser »

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
If you like the work I have been doing then feel free to Image
Post Reply