Jump to content

AutoIT process still remain active


Recommended Posts

I make a simple script:

$file = "ftp://test:test@server/update/version.txt"

$size = InetGetSize($file)

InetGet($file,"update\version.txt",1,1)

ProgressOn("Update", "Download in progress...", "0%",-1,-1,18)

WinActivate("Update")

While @InetGetActive

sleep(100)

$progress = round(@InetGetBytesRead * 100 / $size)

ProgressSet( $progress, $progress & "%")

Wend

ProgressSet(100 , "100%", "Download complete")

sleep(500)

ProgressOff()

Exit

I call this script from another app.

All works fine but after the end of the script, the autoit3.exe process (I see it in task manager) remain active for some minutes and the calling app remains waiting for all this time.

What is the problem?

Link to comment
Share on other sites

Couldn't you just put ProcessClose at the end of your script?

I.E.

ProcessClose("autoit3.exe")
Yes, this work, I had tried it this morning.

I can add also

AutoItSetOption("TrayIconHide",1)

so the tray icon disappear but I thinks this is a workaround not the solution I think.

I'm trying to find the reason of this problem.

Thank you!

Link to comment
Share on other sites

Yay someone else has the same problem

I've placed many posts regarding this and told the AutoiIt Team are looking into it.

Edited by Rick

Who needs puzzles when we have AutoIt!!

Link to comment
Share on other sites

  • Developers

@brusuillis,

could you give us all details of your setup, version Autoit3/WinOS and FTP server you connect to?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

@brusuillis,

could you give us all details of your setup, version Autoit3/WinOS and FTP server you connect to?

AutoIT 3.1.1

Windows XP Pro SP2

FileZilla Server 0.9.18

I try also old version of AutoIT and FileZilla Server.

I try from a lot of PC connected directly to the FTP server and from Internet but all have the problem.

Link to comment
Share on other sites

Yes it download. The script works all the time but at the end the process remain active for minutes.

it awaits ftp timeout which of course is wrong, JdeB is currently working on the cause, I'm sure he'll let us know soon.

Who needs puzzles when we have AutoIt!!

Link to comment
Share on other sites

While JdeB is woorking on it, what will a

InetGet("abort")
at the end of the script do?
Hang, until ftp default timeout

(altho it doesnt seem to apply to everyone for some reason)

Edited by Rick

Who needs puzzles when we have AutoIt!!

Link to comment
Share on other sites

  • Developers

AutoIT 3.1.1

Windows XP Pro SP2

FileZilla Server 0.9.18

I try also old version of AutoIT and FileZilla Server.

I try from a lot of PC connected directly to the FTP server and from Internet but all have the problem.

Just some thoughts/facts:

- So it looks like one of the common things in the setup is that you and Rick both use a filezilla server.

- When accessing Ricks server from the Internet, we don't have any problems but you state you do.

- You also state that using W0uters FTP.AU3 script it also hangs.... right ?

There is currently not much we can work on until we have found a way to replicate the issue. only then we can do some debugging.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I can observe this behavior also.

Server: BRS WebWeaver www.brswebweaver.com

ConsoleWrite("@AutoItVersion:=" & @AutoItVersion & @LF)
ConsoleWrite("@OSTYPE:=" & @OSTYPE & @LF)
ConsoleWrite("@OSVersion:=" & @OSVersion & @LF)
ConsoleWrite("@OSServicePack:=" & @OSServicePack & @LF)
$time = TimerInit()
$file = "ftp://localhost/test-slettes.pdf"
$size = InetGetSize($file)
InetGet($file,"test-slettes.pdf",1,1)
ConsoleWrite("@error:=" & @error & @lf)
ProgressOn("Update", "Download in progress...", "0%",-1,-1,18)
WinActivate("Update")
While @InetGetActive
sleep(100)
$progress = round(@InetGetBytesRead * 100 / $size)
ProgressSet( $progress, $progress & "%")
Wend
ConsoleWrite("@error:=" & @error & @lf)
ProgressSet(100 , "100%", "Download complete")
sleep(500)
ProgressOff()
ConsoleWrite("DONE: TimerDiff($time):=" & TimerDiff($time) & @lf)
Exit

Output running from SciTe:

>"\\shuttle\tools\portableaps\autoit3beta\autoit3.exe" /ErrorStdOut "Z:\portableaps\Autoit3beta\Code\au3\test\testInetGet.au3"  
@AutoItVersion:=3.1.1.124
@OSTYPE:=WIN32_NT
@OSVersion:=WIN_2000
@OSServicePack:=Service Pack 4
@error:=0
@error:=0
DONE: TimerDiff($time):=1232.34964220313
>Exit code: 0   Time: 62.704

The download takes like 1.2sek but SciTe gets a timestamp from Autoit3.exe after 60+sek.

Link to comment
Share on other sites

I dont agree that its fileZilla related problem as both JdeB & Valik have been able to access files and disconnect imediately, so it has to be something else.

Who needs puzzles when we have AutoIt!!

Link to comment
Share on other sites

  • Developers

I dont agree that its fileZilla related problem as both JdeB & Valik have been able to access files and disconnect imediately, so it has to be something else.

Don't think I said that....

Just trying to do fact finding and narrow things down were possible.

Just did install the FileZilla server on my own PC and tested without having any problems.......

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...