Jump to content

IniWrite


jondolar
 Share

Recommended Posts

Hi everyone

I'm writing to an ini file for testing purposes.

$i = 0
While $i <= 1000
      IniWrite("D:\Autoit3\Serge\MYINI.ini", $i, $i, $i)
     ;Sleep(100)
      $i = $i + 1
Wend

Without Sleep(100), The output looks like that:

[0]

0=0

[1]

1=1

[2]

2=2

[3]

3=3

.

.

.

[497]

497=497

[498]

498=498 it stops anywhere between 490 and 530. (File erased between each run)

If I use Sleep(100), it stops around 57.

My question: any idea while it stops like that? Any workaround?

This should easilly go 10,000 if I wanted to unless there is something I don't understand. AFAK the theoretical limit for an ini file with win 9x is 64k and this limit was removed for win XP.

TIA

Serge

Link to comment
Share on other sites

ran it on my system using the release version, it went all the way to 1000

OS WinXP Pro SP2

Edit: upped the number to 10,000 and ran just fine.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

ran it on my system using the release version, it went all the way to 1000

OS WinXP Pro SP2

Edit: upped the number to 10,000 and ran just fine.

<{POST_SNAPBACK}>

Mine also went all the way. Same OS and the ini file was 16k.

Edit :- Just passed 11000 and still going.

Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Mine also went all the way. Same OS and the ini file was 16k.

Edit :- Just passed 11000 and still going.

<{POST_SNAPBACK}>

I don't understand what's wrong. I tried to run the script with the Autoed editor with both the production version and the latest Beta by toggling between the two with Toggleau3Beta.au3. Same results as stated before. I'm baffeled!

Serge

Link to comment
Share on other sites

I don't understand what's wrong. I tried to run the script with the Autoed editor with both the production version and the latest Beta by toggling between the two with Toggleau3Beta.au3. Same results as stated before. I'm baffeled!

Serge

<{POST_SNAPBACK}>

rather than running in an editor, run it by itself, or compile and run, then test...
Link to comment
Share on other sites

rather than running in an editor, run it by itself, or compile and run, then test...

<{POST_SNAPBACK}>

Thanks for the suggestion. It works when run by itself. My confidence in ths Autoedit is greatly reduced ;o)

Serge

Tested the script dirctly. It takes 15 sec per 1000 writes. That's awfully long. Is that normal?

Edited by jondolar
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...