I'm calling PowerScript functions via PBNI from my C++ code,
and the PBNI calls are done from a separate thread. However,
I'm experiencing occasional crashes which are hard to
reproduce and debug.
Does anybody know whether calling into the PowerBuilder
virtual machine via PBNI can be done from any thread? Or do
you need to be on some particular thread (for instance, the
one which called the PBX_GetDescription() function when
loading my NVO plugin)?
I looked for a word on using PBNI from different threads in
some manuals, but couldn't find anything. Maybe somebody
here has some experience with that?
- Frerich
Some experiments suggest that only the GUI thread (that is,
the
thread of the PowerBuilder VM which seems to perform all the
CreateWindow calls) may safely call PBNI functions which
access
the VM.
- Frerich