Archive: NSISArray SetAutoReDim fails


NSISArray SetAutoReDim fails
Hi,

I'm trying to use ${myArray->SetAutoRedim} [indexes] [str_len] for my installation. I've tryed setting both parameters to 8 and the debugger showed me always that auto increase used the default values (16, 32).

I was wondering if I'm doing something wrong an tried the example "SetAutoReDim.nsi" that comes with NSISArray. Even the example does not work right for me. I've also modified the example setting [indexes] and [str_len] to 8. That doesn't change anything on the dynamic output. (${myArray->SetAutoRedim} 8 8)

So, if it's not my fault, what is it?

Thanks :)

CJ

Attached file:
The attached file shows the NSISArray/SetAutoReDim example. The right window shows the standard example and the left one shows the modificated version setting the Dimensions to 8.

Added
The compiler says:
"unknown variable/constant '{StrLen}' detected, ignoring (macro:Array_SetAutoReDim:7)"


It's a typo in NSISArray.nsh. I will fix now.

Line 296 should read:
${ArrayPluginDLL}::SetAutoReDim /NOUNLOAD `${Name}` `${Items}` `${Buffer}`

Stu


Thank you, it works fine now! :)