Jump to content
Sign in to follow this  
Max Kipness

run and exe crashes

Recommended Posts

Max Kipness

Can't seem to figure this one out.

I have a PHP application compiled to an exe that I am running from a compiled AutoIT application using the Run command. It runs the entire compiled PHP executable fine, but it looks like whenever the PHP executable ends, the old windows error pops up stating that xxx.exe has encountered an error and needs to close. The PHP exe runs fine alone from a command line, plus it runs fine when using the _RunDos command in AutoIT. However, since I don't want the AutoIT script to pause while executing the PHP exe, I cannot use _RunDos.

Anybody have any suggestions for this?

I also just upgraded to the latest version of AutoIT to try the ShellExecute command, but can't get that working as I'm getting an error about not being able to open the exe file because there is no file associated with an .exe. That also seems kind of strange.

Thanks,

Max

Share this post


Link to post
Share on other sites
Max Kipness

take a look at _RunDos()

Func _RunDOS($sCommand)
    Return RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE)
EndFunc   ;==>_RunDOS

But the problem causing the crash is probably not autoit related...

As I wrote in my original post, I've already tried _RunDos and it works fine. If I run the executable alone it works fine as well. Only when I use Run with or without Comspec it consistently crashes.

I finally got ShellExec to work, but it has the exact same crashing problem.

Any other suggestions, anyone?

Thanks,

Max

Share this post


Link to post
Share on other sites
piccaso

maybe you should give us more info :)

Like which compiler, and a small snip of php to recreate the problem...


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

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  

×