LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ini Files

Hi,

I'm currently working on a project in MSVC2005.
I used *.ini file functions provided by Labwindows CVI, in order to use those type of files.

I've seen on the Internet that *.ini files are limited to 64ko.

I need to know if it's right and if it's a problem for CVI INI functions?

Thanks in advance.
0 Kudos
Message 1 of 8
(3,895 Views)
Although I cound not find official announcement from Microsoft, I believe it is true that INI file is limitted to 64KB.  Because this is the limitation of OS itself or "Profile String" API family , nothing can solve this no matter what language you use. 
0 Kudos
Message 2 of 8
(3,864 Views)
Hi,

thanks for your answer Makoto.

I'm running under Windows XP. And I'd appreciate if a NI A.Engineer could answer me because I'm working with their INI functions !
So they might know if it's correct or not !
0 Kudos
Message 3 of 8
(3,851 Views)

I made a simple project to create a huge ini file: with 5000 items the file created exceeds 250K. The same file can be read without problems.
I tested also with 20000 items created: despite the time needed (more than a whole minute) the file was created and read back without errors  (approx 1Gb file).



Message Edited by Roberto Bozzolo on 06-26-2008 10:47 AM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 8
(3,844 Views)
Hi,

thanks a lot Roberto.

You helped me very well
0 Kudos
Message 5 of 8
(3,836 Views)
You're welcome! Smiley Happy


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 8
(3,829 Views)
The 64kB limit for ini files applies to Windows 95/98/Me technology (32kB in Windows 1.x/2.x/3.x Smiley Wink, not NT/2000/XP/Vista. Even then, it only applies if you are using the Windows API calls to access the files. If you are using the NI inifile.fp interface, the limit doesn't apply (since it doesn't use those Windows API calls).

Message Edited by msaxon on 06-26-2008 02:15 PM
--
Martin
Certified CVI Developer
0 Kudos
Message 7 of 8
(3,822 Views)
Hi,

thanks msaxon.

Very interesting stuff.


I'm using NI  source files which are used by the .fp file. So I conclude, I won't encounter problems. Smiley Happy

Do you have any internet links where I can find this information?


Thank you very much, to all participants of this dicussion.
0 Kudos
Message 8 of 8
(3,809 Views)