Login  Register

Re: .NET Framework 4.0 Application Runtime Exceptions Problem

Posted by kcross on Mar 29, 2012; 12:52am
URL: http://quantlib.414.s1.nabble.com/NET-Framework-4-0-Application-Runtime-Exceptions-Problem-tp8685p8694.html

It doesn't seem to want to for some reason.... Any time the c++ dll throws an exception, all the c# side seems to do is throw an AccessViolationException... Even when I throw the code into a try catch block.

Kcross



On Mar 22, 2012, at 4:28 AM, Luigi Ballabio <[hidden email]> wrote:

> On Mon, Mar 12, 2012 at 2:32 AM, kcross <[hidden email]> wrote:
>> Do you know if there is a way to have the C# side catch the QuantLib
>> exceptions?  Even if I wrapped it in a try-catch block it wouldn't work..
>
> The SWIG machinery should catch the C++ exception and convert it into a C# one.
> Doesn't this work? What happens instead?
>
> Luigi

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users