
String Formula Too Complex
Quote:
>>This might be a faq, but I have a rather large application
>>written in MS Basic and Assembly which has been crashing
>>due to the "String Formula Too Complex" error.
< S N I P >
Quote:
>To avoid it is kinda hard since it's not really general knowledge,
>or even mentioned in any of the documentation what actually
>constitutes a string formula that's too complex... <G>
>One possible solution that may help find the culprit is to
>compile it and run it until it bombs out. Write down the address
>where it fails, then reassemble it with the /A switch.
>After the recompile, the /A switch will have created a file that
>you can search with a decent text editor for the offset that
>caused the problem.
I should have been more specific in my original post, but I have
identified the lines that cause the error and often they are trivial. For
example, I cannot imagine how the following line could get any simpler:
T$ = T$ + "\" And yet, this line, and other equally trivial lines have
supposedly caused the "String Formula Too Complex" error. I would say
that I now get this error *every* time I use this program and it happens
in different places.
I am assuming that there is some temporary string storage space
that is getting over run. The compiler guesses that it is due to
complex string formulas and produces that error. I am also guessing
that there is some other type of data that can also impinge on
this hypothetical string space and produces this error for the same
reason but with different underlying causes.
Obviously I have a better imagination than I do knowlege of the
string handling code in PDS :-) but I was wondering if anyone
else knew why these errors occur and if they could be avoided
by changing the size of the stack or some similar technique.
Anyway, thanks for the reply. I know I am really stabbing in
the dark.
Bob Santore