--- Bruce wrote:
> This error is signalled if an expression requires too much space for
> intermediary processing. What is intermediary? Two separate things:
> space for suspended parts of the expression and space for temporary
> results.
Thanks for that explanation Bruce!
> Actually, I am surprised that you surpassed these limits. Can you
> post an example too complex expression? Possibly there is a problem
> and then limits are not as big as I thought.
Here's a line from my ARB script that causes such an error:
; Local TempScrData, CmdLine, CRLF, TempScrPath, TempScrName
; TempScrData = Repeat("!", 290)
; --- all one line below
TempScrData = TempScrData ++ ?'Esc(?"' ++ ReplaceChars(ReplaceChars(CmdLine, ?"\",
?"\\"), ?'"', ?"\X22") ++ ?'", ?"\") ++ CRLF ++ Tab ++ ?"Quit" ++ CRLF ++ ?"; " ++
Repeat(?"_", 70) ++ CRLF, ?"A")' ++ CRLF ++ ?'Event.Create(5, 0,
?|File.DeleteNoRecycle(?"' ++ TempScrPath ++ ?'")| ++ CRLF ++ ?|If(Not(ValidPath("' ++
TempScrPath ++ ?'")))| ++ CRLF ++ ?"Event.DestroyThis")' ++ CRLF ++ ?"Else" ++ CRLF ++
?'Event.CreateMS(100, 1, ?"' ++ TempScrName ++ ?'")' ++ CRLF ++ ?"EndIf"
; --- all one line above
One observation that may be of interest is that if you place this line
into a blank script and run it, you won't see an error. I believe that
this is because of the length of TempScrData being at least 290 bytes
in length before this command is reached.
The fact that most of this line (besides the ReplaceChars() part)
consists purely of ?"just strings" ++ Vars ++ ?"more strings" ++ etc.
also points at the string's initial length as the culprit.
> PowerPro can stored a maximum of 8K temporary results when the
> result is less that 532 bytes. For longer temporaries, PowerPro will
> allocate special memory; at most ten such long-string temporaries
> can be simulaneously active.
--
Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP
------------------------ 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/