LabWindows/CVI User Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Inifile Read Bug

Hi, everyone.

 

If you write and read to the ini file, there is a problem when you use underscore for the item name.
If the same item name exists in the string prior to underscore, it causes problems.
In other words, one of the following two fails to read as a function of Ini_GetInt().

 

iABC_DE = 1
iABCDEF = 2

 

There was no problem in reading when replaced by other characters ('.', '/', '?) instead of underscore.
In other words, there is no problem when you do the following.

 

case 1. OK ------
iABC.DE = 1
iABCDEF = 2
------------------

 

case 2. OK ------
iABC/DE = 1
iABCDEF = 2
------------------

 

case 3. OK ------
iABC?DE = 1
iABCDEF = 2
------------------

 

I'm using Lab Windows/CVI 2020 version, and I'm sure there's no problem with other versions,
I wonder if you have a patch.

 

Upload the project files that you used for the test as well.

 

Thank you.

 

20231214_205849_GPSWHCW_desc.png

20231214_205951_GPSWHCW_.png

0 Kudos
Message 1 of 1
(267 Views)