import pythoncom
class HelloWorld:
def __init__(self):
pythoncom.CoInitialize()
def __del__(self):
pythoncom.CoUninitialize()
def index(self):
return "Hello World!"
index.exposed = True
For some reason, putting adding the functions to the threadStart and
ThreadStop lists did not work when I was running as a service (except
for the first hit).
Which version of CP are you using ?
If you were using the latest trunk then there was a bug that caused
onStartThreadList to not always work (only on_start_thread_list always
worked). I just fixed it.
Remi.