CxxFrameHandler problem

Francois Gouget fgouget at free.fr
Wed Jul 17 17:02:16 CDT 2002


On Wed, 17 Jul 2002, Uwe Bonnes wrote:
[...]
> Here at home, I only have the author's edition of VC++, not allowing my to
> distributed compiled executables, but only the source.
>
> Appended program uses CxxFrameHandler and crashes in wine with builtin
> msvcrt, but not with native. Compile as Release version and include the MFC
> dll. Can somebody compile for Alexandre? Alexandre, is this a start or do
> you need something complete?


I compiled the program and sent it to Alexandre. I modified the program
to not use iostreamsn so that I would not have to link with msvcirt.dll.
I compiled with Visual C++ 6.0 in Release mode and checked that it
crashes (badly) when using the builtin msvcrt.

#include <stdio.h>
#include <string.h>

int main()
{
    try {
        printf("Hello World!\n");
        throw "fault";
        return 1;
    } catch (...) {
        printf("Caught the exception\n");
    }
    return 0;
}


trace:seh:EXC_CallHandler calling handler at 0x400c53f0 code=c0000096
flags=10
trace:seh:EXC_CallHandler handler returned 2
trace:seh:EXC_CallHandler calling handler at 0x400c53f0 code=c0000096
flags=10
trace:seh:EXC_CallHandler handler returned 2
trace:seh:EXC_CallHandler calling handler at 0x400c53f0 code=c0000096
flags=10
trace:seh:EXC_CallHandler handler returned 2
[... ad infinitum ...]


--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                     Linux: the choice of a GNU generation





More information about the wine-devel mailing list