Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread error in TEDBScript.ExecScript update
Mon, Jul 30 2012 8:20 PMPermanent Link

Bryn Lewis

Intelligent Software and Systems

Fernando was right. I increased the Max stack size from

$00010000
to
$00400000

and it is happy.

However, are there other reasons why I shouldn't raise the stack size? (ie, why isn't it higher by default)?

Thanks for the suggestion.
Tue, Jul 31 2012 3:54 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Bryn


In D6 and D2006 my Max Stack size is $00100000 and you have $00010000. If your's isn't a typo then it looks as though something/someone changed it.

If it is a typo then whilst you've solved it I don't think the stack size was the real problem and I'd suggest upgrading your version of ElevateDB

Roy Lambert [Team Elevate]
Thu, Aug 2 2012 3:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bryn,

<< When doing TEDBScript.ExecScript, I am getting a stack overflow if the
update value is >~15000 characters (not usre exactly what the limit is). It
doesn't seem to matter what the characters are. >>

If you're using a lot of 'This '+' this '+' this '+' this ' type of
concatenation in the script, then that is the issue.  Each concatenation
causes the parser to recurse as it navigates the expression tree, so having
a lot of such concatenations can blow out the stack in your Delphi
application.  The solution is to use a parameterized script and pass in the
parameter as one string.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image