Sue wrote:
S> Since I started fiddling with my configuration again,
S> I've noticed every once in a while PowerPro will just
S> silently shut down out of the blue.

Bruce wrote:
b> Do you have any shutdown powerpro commands in your new scripts?

b> If not, a silent shutdown could be a stack overflow which would likeey
b> be a PowerPro bug.  But there is not way to trace without finding the
b> statement in one of your scripts which triggered it.  Try de-
b> activating one script at a time to see if stopping one of them also
b> stops the shutdowns.  Then post that script.

I had an example of an overflow recently.

static zChildText = win.gettext(zTargetChildHandle)
cl.SetLabel("Infobar","ChildText", zChildText)

which produced a silent shutdown as Sue describes.

Of course, the child text can sometimes be huge,
for example when I click on an editor's mdi child window.
I fixed it by reducing the amount of child text:
 
static zChildText = select(win.gettext(zTargetChildHandle),255)
cl.SetLabel("Infobar","ChildText", zChildText)

This fix also worked:

static zChildText = win.gettext(zTargetChildHandle)
cl.SetLabel("Infobar","ChildText", select(zChildText,255))

which demonstrates that a variable is able to contain a very long string
but cl.setlabel kills PowerPro if it is asked to make a very long label.

So I guess that is the kind of overflow you would be looking for.



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