Sign in to follow this  
Followers 0
Ebenezer

Inifile Read Stopping At Halfway Through

5 posts in this topic

Hi,

I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating.

I tried to get the entries into an array via the

IniReadSection("Itemdatabase.ini", "Items")

command.

However I only get 1146 of the entries returned.

Here's the code:

#include <Array.au3>

Dim $Ergebnis[1]

$vArray = IniReadSection("Itemdatabase.ini", "Items")
    
For $i = 1 To $vArray[0][0]
    $vTemp = _ArraySearch($Ergebnis, $vArray[$i][1])
    ConsoleWrite($i & " = " & $vArray[$i][0] & @LF)
    If $vTemp = -1 Then
        _ArrayAdd($Ergebnis, $vArray[$i][1])
    EndIf
Next

_ArrayDisplay($Ergebnis, "")

Any ideas what I'm doing wrong ?

Share this post


Link to post
Share on other sites



Hi,

I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating.

I tried to get the entries into an array via the

IniReadSection("Itemdatabase.ini", "Items")

command.

However I only get 1146 of the entries returned.

Any ideas what I'm doing wrong ?

Think the max supported size of a section is 32766 characters.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks for the hint.

Found some interesting information here:

www.delphicorner.f9.co.uk/articles/wapi7.htm

Seems to be a windows buffer limitation. Any idea how to circumvent this in autoit?

Share this post


Link to post
Share on other sites

Thanks for the hint.

Found some interesting information here:

www.delphicorner.f9.co.uk/articles/wapi7.htm

Seems to be a windows buffer limitation. Any idea how to circumvent this in autoit?

Open the file and read the section yourself ......

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

:think:

The simplest things...

Thanks for the nudge in the right direction.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0