--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > file.runcallback(99999, "[EMAIL PROTECTED]", "notepad.exe")
> > Quit
> >
> > @callback
> > ;file.unload
> > win.debug("got here")
> > Quit
> I think this is a bug in file plugin: it should have an explicit
> unload entry point and destroy all threads it has spawned before
> allowing unload (else when the event the thread is waiting on
> signals, the threadproc which is waiting is gone!)
My problem (net.ping_threaded, or whatever it's called)
has the same problem. Not solved by putting a wait.for
before the net.unload.
> I think a simple way to do this is to have each thread wait not
> only on a process, but on a separate event which means the plugin
> has been unloaded and the thread should exit. The unload service
> has to signal this event, wait for a bit, then exit. (I guess I
> could try to make sure all threads had exited as part of the
> unload rather than just waiting and hoping, say by keeping a count,
> but I may not bother).
I tried something similar with net: set a thread-safe flag
in each thread stil running, telling thread to terminate,
and then waiting for the termination. Didn't make any difference.
In any case my threads are terminated by _endthread, which should be
the end of it.
But, suppose every DllMain gets called with DLL_THREAD_DETACH, and
that that call takes a while to get through the system. By which time
unload has been called and DllMain has gone away?
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/