Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
35 user(s) are online (19 user(s) are browsing Forum)

Members: 0
Guests: 35

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +50€

Current balance: -70€
(last updated 05/2018)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 35 users playing Freelancer on 30 servers.
June. 25, 2018

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



FL INIReader Limitations
Just popping in
Joined:
2016/3/29 21:54
Group:
Registered Users
Posts: 19
Offline
Afternoon everyone, I am wondering if anyone has any information on the limitations of the FL INIReader. After doing some stuff with @Alex. we discovered that there seems to be a limitation of the inireader - we specifically tested with get_value_string(void)

The best way I can describe it is that when reading a ini/cfg file it will get to the 1024 character and treat it as if it's the end of the line. I discovered the issue when using these files to store XML strings, then everything was suddenly failing without any indication as to the cause.

While I've got a workaround for the time being, I am curious if there is any solution to this, or perhaps just more information as to why it occurs (I could hazard a guess, but certainty is always more preferable).

Any and all information on this would be appreciated.

Kind Regards,
Laz

Posted on: 3/12 12:05
Way too ambitious for his own good.
Top
Re: FL INIReader Limitations
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3505
Offline
I'm assuming the reader has a 1024 characters read buffer for the whole line, which frankly is more than enough for normal usage. You shouldn't be storing that much text data directly in the INIs.

Posted on: 3/12 16:46
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top