GetProfStringList doesn't read a whole section
Posted 12 January 2011 - 12:06
I use InstallShield 8 under WindowsXP.
There I try to read the section OBJECT_LIST1 from my Ini-file containing all keys from 000 up to 478:
Unfortunately GetProfStringList only reads 456 entries of this section (keys 000 up to 455). The return value of GetProfStringList is 0 (Indicates that the function successfully read the section and inserted key names and string values into the specified lists.), but ListCount returns 456 and not 478:
LIST listKeys, listTemp;
listKeys = ListCreate(STRINGLIST);
listTemp = ListCreate(STRINGLIST);
nResult = GetProfStringList(szIniFrom, szFromSectionName, listKeys,
// nResult = 0
nResult = ListCount ( listKeys );
// nResult = 456
Is this a bug of GetProfStringList? Or is anything wrong with my source code?
Any help is appreciated...
Posted 13 January 2011 - 09:57
Posted 19 January 2011 - 15:58
When I shorten the text, the whole section is read. There really seems to be a limit of internal buffer-size for GetProfStringList().
Do you know any workaround?
Posted 20 January 2011 - 18:23
Posted 20 January 2011 - 18:24