--- In [email protected], "swzoh" <sean...@...> wrote:
>
> --- In [email protected], "entropyreduction" 
> <alancampbelllists+yahoo@> wrote:

> > Reinstated in latest version, main thread only.

> I'd rather use for both threads, although it may not be absolutely necessary 
> for the worker thread.

Worker thread appeared to lock up if I tried it there.
 
> > > Anyway, I'd rather wait on hThread than hEvent when PP is shutdown.
> > 
> > For some reason WaitForSingleObject(hThread) locks up.  I'll try
> > CoWaitForMultipleHandles with hThread.

> Just in case, I meant hThread should be that of the worker thread, 
> WaitForSingleObject/CoWaitForMultipleHandles on the main thread. 

Tried that in COMplugin0.63_090630.zip, forgot to mention in parallel post.  
Seems to work.

> BTW, I suppose it'd work only in case of PP's ExitProcess, not likely in case 
> of mere com.unload. So, ultimately you may have to pursue as Bruce suggested.

unload is meant to kill the worker thread, so have to cause thread to exit and 
wait on it during unload.




Reply via email to