Jump to content
Sign in to follow this  
shornw

Intermittent error using Zip.au3

Recommended Posts

shornw

Quite odd really, occasionally, and with no real pattern, I get the error:

'AutoIt3\Include\Zip.au3 (333) : ==> Object referenced outside a "With" statement.:'

As this is just testing at the moment, the files in the target location don't change, but every now and then I get the error, most times it works just fine

$f1 = FileFindFirstFile("C:\Temp\Test\*.au3")
While 1
      $file = FileFindNextFile($f1)
      If @error Then ExitLoop
      _Zip_AddFile($zip, $path & $file)
;    MsgBox(0, "", @error)
WEnd
Am I doing something wrong?

Thanks


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.