Sign in to follow this  
Followers 0
jondolar

IniWrite

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
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

Share this post


Link to post
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...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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

Serge

<{POST_SNAPBACK}>

have you checked out SciTE4Autoit ? check links at homepage... great stuff...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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