From: Mark G. <mar...@gm...> - 2012-03-29 00:52:48
|
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 <lui...@gm...> wrote: > On Mon, Mar 12, 2012 at 2:32 AM, kcross <mar...@gm...> 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 |