Max Kipness Posted June 3, 2007 Share Posted June 3, 2007 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 Link to comment Share on other sites More sharing options...
James Posted June 3, 2007 Share Posted June 3, 2007 Hmm, wrong section but. Try using ConsoleWrite etc to check its every movements and @error. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
piccaso Posted June 3, 2007 Share Posted June 3, 2007 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... CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
Max Kipness Posted June 4, 2007 Author Share Posted June 4, 2007 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 Link to comment Share on other sites More sharing options...
piccaso Posted June 4, 2007 Share Posted June 4, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now