Welcome, Guest
Python Scripts for ComicRack

TOPIC: Long running thread

Long running thread 1 year 10 months ago #46656

Forgive me if I'm asking something ovious, I'm not very familiar with IronPython. I'm working on a script that needs to use a long running background thread, that responds to registered hooks. The problem I'm having is that each time a hook event fires, it seems to run the script in a brand new context. I tried storing a reference to thread in a global variable and enumerating over current threads, both of which act like the script was just run in a new context.

Is there anyway to store a global reference to a thread that any hook event has access to?
The administrator has disabled public write access.
Time to create page: 0.142 seconds

Who's Online

We have 164 guests and one member online