>   local sRes = pipe.listen_on("powerpro", 0)

Is pipe multi-threaded -- ie does is spawn a thread for listening?

> 
> This the weird bit: remove the win.debug line, and PP crashes.
> 
> I'm not terribly surprised that the send_to invocation of RunCmd 
might
> cause a problem: PP probably trying to execute two scripts at once 
and
> gets in a pickle.  

Executing two scripts at once is not really possible from a single 
thread.  However, it should be possible for a script to call a 
plugin which in turn calls a script (eg call to file.allfiles from a 
script could do this).  It should work fine, just like calling one 
script from another works fine.


> 
> But why would sticking win.debug line make problem go away?  

Coudl be related to whatever windows routines are doing in writing 
to dialog screen.

>> Related: is it possible you could expose something that would 
allow a
> plugin to detect whether a script was currently running inside
> Powerpro?   
> 
> Maybe a PPROSERVICES* function bImBusyGoAway()?

No script can be "running" if single threaded.  A script could be 
suspended waiting for a return from plugin call, but this should not 
be a problem.








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/
 


Reply via email to