Starting threads in plugins
#1
Hi,

I am writing python plugin (MPD client) for drahma (compiled xbmc from trunk) and I have problems with starting thread (I guess)

My plugin is XMLWindow based and in its OnInit() method it starts a thread, the thread is cleanly recycled when window is closed.

My problem is weird:

1. when I run (just open it, do some little stuff and close then) my plugin (several times) it works great.
2. next when I browse through XBMC, especially System->Addons->enabled addonds, but in common showing other dialogs/windows
After that, when i go back and try to start my plugin, xbmc crashes without any message. XBMC dies exactly when my plugin is on line thread.start()

Is there any recommended way, how to treat with threads in plugins?
I would like to avoid threads, but it seems to be impossible for me, since I need to poll incomming changes from MPD server.

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Starting threads in plugins0