I'm having a problem when this script is loaded on startup with daemon mode. Its not reproducible every time, but happens enough to become quite annoying. I'll open any window after startup and XBMC freezes with this error:
16:26:48 T:1476 ERROR: CThread::staticThread : Access violation at 0x00c02823: Reading location 0xe51e5f2c
Any idea why the access violation error is given?