> will work fine when running under wine, but if you start the application with the 
>debugger, it will stop on a page fault exception.
> 
> I think the problem is that DEBUG_HandleException is called, but the condition
> 
>     if (first_chance && !Options.debug && !force ) return 0;  /* pass to app first */
> 
> is false (Options.debug == 1), so the app does not get the exception first and the 
>debugger think we have a page fault. Is there a way to know we are in a __try / 
>__except context? Do you have any ideas how to get it working?
in any case the debugger must have the exception reported to it
but, what's currently wrong is that the debugger shall be exited with a 
DBG_EXCEPTION_NOT_HANDLED, and not a DBG_CONTINUE status
code
I'll try to post (and test) a fix later on

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle

Reply via email to