Login  Register

Re: .NET Framework 4.0 Application Runtime Exceptions Problem

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

Thanks for the link.  Unfortunately it turned out to be a user error in this case...  I forgot to divide some swap rates by 100....

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..

Cheers

Luigi Ballabio wrote
May it be related to this?

<http://old.nabble.com/Issues-with-C--Swig-Bindings,-NUnit-and-Settings.instance%28%29.setEvaluationDate%28%29-td30549787.html>

Luigi


On Sat, Mar 10, 2012 at 11:57 PM, kcross <markgillis0@gmail.com> wrote:
> Glad my fix for .NET (the cdecl thing...) worked for you guys too.  I'm
> encountered a bit of a stumbling block though... Everything works fine when
> I create a new instance of everything, but if I try and update an object (ie
> update a yield curve) I get a bunch of AccessViolationExceptions (whatever
> they mean...)
>
> I was wondering if you guys have experienced the same thing etc?  I have a
> feeling that its something to do with multi-threading, and some garbage
> collector is acting out of line somewhere, but its been a bit of a nightmare
> to track...
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users