Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 30th June 2003, 19:20   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
INI Field issue

I'm having problems with my app, where a user must enter multiple maps into a 1 line field box seperated by ";" characters.
I'm having a problem, that there seems to be a maximum character size either in that field or when I read from that field.

Looking at it now, there seems to be a max size for the field, because the output (that gets written to my ini file is always chopped in half)

Does anyone know what the max length for the field (text box) are?


-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 30th June 2003, 20:20   #2
ramon18
NSIS Dev
 
ramon18's Avatar
 
Join Date: Apr 2003
Location: Portugal
Posts: 110
The buffer size in IO is dynamic and there is no size limit for "text" controls, on the other hand, NSIS internal buffers size for user variables is limited to 1024 chars, and this can generate problems.

cyas
Ramon
ramon18 is offline   Reply With Quote
Old 30th June 2003, 22:12   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Yes you are right...
So, its the saving as variable part that screws it up.

I shall have to set the max field length to 1024, unless there's another way...

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 1st July 2003, 03:17   #4
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
You can always recompile NSIS with NSIS_MAX_STRLEN set to a larger value.

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Old 1st July 2003, 13:42   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
I don't have a decent compiler...

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump