http://bugs.winehq.org/show_bug.cgi?id=4897
------- Additional Comments From pgr@arcelectronicsinc.com 2006-22-03 22:54 ------- Adding some traces to GetDesktopWindow to show when force == 0 and != 1 Starting tester.exe in a wcmd window show force ==1. When Kpnl1.exe is started by WinExec it has force ==0 and then causes the crash when the tester.exe returns from the call.
My code is does a WinExec as follows and the pagefault seems to be during the Catch
stpcpy(comandstr,"kpnl1.exe "); strcat(comandstr,_argv[0]); if (FindWindow(0,"Simulator EDD-110") == NULL) WinExec(comandstr,SW_SHOWNA); if (Catch(jumper0) == 0) {.... } else Throw()