1. ShellExecuteEx stops working
- Posted by sergelli Oct 26, 2013
- 1361 views
I have a "edit.exe" that has the following lines
ShowWindow (MAIN, SW_MINIMIZE) -- hiding editor err_msg = ShellExecuteEx ("open","c:\\euphoria\\bin\\exwc.exe c:\\euPgm\\new.EXW", 0, 0, SW_NORMAL, 0) ShowWindow (MAIN, SW_RESTORE) -- restores editor
The "new.EXW" program runs normally, but when closing it, there are occasions that "edit.exe" abort, without running the line showWndow(...).
I can not check the value of "err_msg" because "edit.exe" ends before at this point.
This problem occurs with Eu311
With EU4 and "euiw.exe",this problem does not occur, but would not want to use it
Does anyone have any idea what might be happening?
2. Re: ShellExecuteEx stops working
- Posted by sergelli Oct 26, 2013
- 1364 views
The error also occurs with the EU4
Sorry, but the error is intermittent
3. Re: ShellExecuteEx stops working
- Posted by petelomax Oct 26, 2013
- 1350 views
My guess would be you are getting a type check on err_msg. Try changing to to object?
4. Re: ShellExecuteEx stops working
- Posted by sergelli Oct 26, 2013
- 1329 views
My guess would be you are getting a type check on err_msg. Try changing to to object?
In "edit.exe" program, the following line is commented
-- without type_check
So I think that any type I error would be shown, is not it?
additionally, is not being created the file ex.err
What else could I try?
5. Re: ShellExecuteEx stops working
- Posted by andi49 Oct 26, 2013
- 1318 views
My guess would be you are getting a type check on err_msg. Try changing to to object?
In "edit.exe" program, the following line is commented
-- without type_check
So I think that any type I error would be shown, is not it?
additionally, is not being created the file ex.err
What else could I try?
Try to run your program under the Watcom Debugger wdw.exe
this may give you a hint.
Andreas