--- In [email protected], Alex Peters <[EMAIL PROTECTED]> wrote:
 
> pipePluginTestScriptToSelf.PowerPro executes without error if nothing 
> is modified.

<...snip...>
 
> Running it again after this results in 'hello' and then PowerPro 
> becomesunresponsive. What's your experience if you comment out the 
> [EMAIL PROTECTED] commands?


I think I'll go lie down.

[later, back from the big city]

Okay, further research, trying to narrow down problem in my code. 

This works for me:

  local sRes = pipe.listen_on("powerpro", 0)
  sRes = pipe.send_to(?#win.debug("hello")#,  sMyMachine,  "", 0)
  win.debug("pipe.send_to returns " ++ sRes)
  sRes = pipe.listen_off
  pipe.unload

Remove the debug, and it crashes.

Same for you?

So the problem is the send_to, not the listen.

How about provided script

  pipePluginTestScriptToSelfUsingVar.powerpro,

which has to be on your script path to work right? 

Works fine for me, even if you remove calls to @outLine. 

Same for you?

If so, would seem problem is executing script coming back through a pipe. 

Okay, think about it.  The instant you send yourself a command,
the pipe will deliver the script back to Powerpro.  _But Powerpro is
still executing the test script_.  Powerpro isn't multithreading.  So
suddenly Powerpro is trying to execute the current script, maybe even
the current statement, ("pipe.send_to..."), and also trying to execute
what's coming down the pipe.

I can only speculate the the debug window gives Powerpro a breathing
space, so while script is doing that it can also execute something
coming in down pipe.

Problem shouldn't be as severe if you're waiting for a piped command
from another machine, cause PP won't be guaranteed to be running a
script when the script comes down the pipe.

But looks like there's always possibility of conflict between script
running because of e.g. timer and script running via a pipe.  Maybe
one's mostly better off using pipe to set a variable (as in
pipePluginTestScriptToSelfUsingVar.powerpro), which is not prone to
conflict.

I'll look into it further and see if there's any way I can get around
the clash between scripts.

 






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