WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Array plugin - SetAutoReDim fails
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
ChocJunkie
Senior Member

Registered: Oct 2009
From: Germany

Array plugin - SetAutoReDim fails

Hi,

I've used SetAutoReDim on four other places in the installer I'm working on... everything worked fine.

Now I'm calling

code:
# Initialize array ${rebootFunctionsArr->Init} ${rebootFunctionsArr->Inited} _arrayInited 0 [...] _arrayInited: ClearErrors # Configure auto redimension ${rebootFunctionsArr->SetAutoReDim} 8 8 ${If} ${Errors} MessageBox MB_OK "Error" SetErrors Goto _end ${EndIf} _end:


I'm always getting a error from SetAutoReDim. But the debugger shows me that the values have been changed correctly.
In addition to that: The debugger shows the first array I've ever created and used (successfully) during the installtion has the defualt values for AutoReDim - even if I've have configured it for 8 and 8 before and it worked the whole time as it should. I've I'm removing all other arrays, the error stays the same but the debugger said that it worked...

Write or shift a value doesn't work for this array neither.


Could it be a problem with the plugin or a memory problem?

Thanks

CJ

Quick Link | Report this post to a moderator | IP: Logged

ChocJunkie is offline Old Post 11-25-2009 04:57 PM
Click Here to See the Profile for ChocJunkie Click here to Send ChocJunkie a Private Message Find more posts by ChocJunkie Add ChocJunkie to your buddy list Edit/Delete Message Reply w/Quote
Afrow UK
Moderator

Registered: Nov 2002
From: Shropshire, England

It is a small bug in the plugin and will not effect any functionality. Most of the plugin functions push 0 onto the stack on success (non 0 otherwise) but this is not being done for SetAutoReDim. I will fix when I have the time.

Stu

__________________
afrowuk.co.uk

Quick Link | Report this post to a moderator | IP: Logged

Afrow UK is offline Old Post 11-25-2009 07:21 PM
Click Here to See the Profile for Afrow UK Click here to Send Afrow UK a Private Message Click Here to Email Afrow UK Visit Afrow UK's homepage! Find more posts by Afrow UK Add Afrow UK to your buddy list Edit/Delete Message Reply w/Quote
ChocJunkie
Senior Member

Registered: Oct 2009
From: Germany

Thanks AfrowUK!

Does it mean I have to pop it from stack? There was no need for me to do it before. o.O And why does it only affect one of four SetAutoReDims? And only for this array I have also problems doing readin and writing..?

CJ

Quick Link | Report this post to a moderator | IP: Logged

ChocJunkie is offline Old Post 11-25-2009 08:37 PM
Click Here to See the Profile for ChocJunkie Click here to Send ChocJunkie a Private Message Find more posts by ChocJunkie Add ChocJunkie to your buddy list Edit/Delete Message Reply w/Quote
ChocJunkie
Senior Member

Registered: Oct 2009
From: Germany

Ok, I have to blame myself. Writing the array works. I've just added a security mechanism that disables the writing if a error occurres. I've forgot about that while I tried to understand what I've done wrong using SetAutoReDim.

Sorry

CJ

Quick Link | Report this post to a moderator | IP: Logged

ChocJunkie is offline Old Post 11-26-2009 08:13 AM
Click Here to See the Profile for ChocJunkie Click here to Send ChocJunkie a Private Message Find more posts by ChocJunkie Add ChocJunkie to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:10 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Array plugin - SetAutoReDim fails
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON