2010/9/10 Sébastien Villemot <[email protected]>:
> JonY <[email protected]> writes:
>
>> On 9/11/2010 01:22, Sébastien Villemot wrote:
>
>>> After some experimentation, it appears that my problem is much more
>>> generic than what I had initially thought, and has no relation to
>>> MATLAB. It seems to systematically happen when a C++ exception is thrown
>>> by a DLL compiled using Visual C++ (x64) and linked to an executable
>>> compiled using MinGW-w64 (x64-targeted).
>
> […]
>
>> you cannot throw exceptions between different C++ compilers due to difference
>> in ABI and implementation. The C++ standard is deliberately vague on ABI.
>>
>> This is a known issue, but not a bug.
>
> I was aware of this issue but for some reason I thought that MinGW-w64
> aimed at being compatible with other compilers' exception handling.
>
> At least, on 32-bit, the compatibility seems good because I have no
> problem passing C++ exceptions between my MinGW-compiled DLL and MATLAB
> binary objects (which are clearly not compiled with MinGW).
>
> Best,
>
> --
> Sébastien Villemot
> CEPREMAP — http://www.cepremap.ens.fr
> Dynare project — http://www.dynare.org
> Phone: +33 1 40 77 49 90
> PGP Key: 0xA6C029B9D06B2913D71C105EBE37E801FB6EFF8B (http://pgp.mit.edu/)
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
>
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>

Please be patient here. For 4.6 we will support in gcc the support of
x64 SEH. By this it should be possible to throw VC exception over gcc
compiled code and get be caught in VC compiled code.

The exception mechanism between 32-bit and 64-bit is pretty different
and so old behavior of 32-bit isn't possible in 64-bits.

We are working on that feature.

Regards,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to