1. ShellExecuteEx stops working

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?

new topic     » topic index » view message » categorize

2. Re: ShellExecuteEx stops working

The error also occurs with the EU4
Sorry, but the error is intermittent

new topic     » goto parent     » topic index » view message » categorize

3. Re: ShellExecuteEx stops working

My guess would be you are getting a type check on err_msg. Try changing to to object?

new topic     » goto parent     » topic index » view message » categorize

4. Re: ShellExecuteEx stops working

petelomax said...

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: ShellExecuteEx stops working

sergelli said...
petelomax said...

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu