PDA

View Full Version : List string in releases compiler variable - bad bug



TreeMeister
06-14-2009, 01:07 PM
(SB Developer, 6.9.2587)

Consider a string of the form: "a|b|c|d"
SB treats this as a list of four items which I can extract by index. Precisely my intent.

If I define a compiler variable containing such a string, in the "Compiler Variables Visualizer" it behaves exactly as expected.

However, If I define the same variable under "Compiler Variables" in the "Releases Visualizer", I get very bizarre results. It initially appears in the variable list as expected:
Variable . . . . . . . . Value
[VARNAME] . . . . . . a|b|c|d
[NEXTNAME] . . . . . 1
...

But, after clicking OK in this dialog, SB gets very confused. When the Compiler Variables dialog is re-entered, SB shows these variables as:
Variable . . . . . . . . Value
[VARNAME] . . . . . . a
b . . . . . . . . . . . . . c
d . . . . . . . . . . . . . [NEXTNAME]
1 . . . . . . . . . . . . . (and so forth)

The effect is not just cosmetic. SV actually loses all control over what are variables and what are their values. The entire script goes berserk.

linder
06-14-2009, 11:54 PM
Yes, "|" are not allowed here and the "Release Properties" dialog does not check for it. This will be fixed in the next build, thank you.

Friedrich