Hi,
I'm using QuantLib from F# through a custom managed interface (not SWIG) since a couple of months. All seemed to work until I used the Euribor class. The stuff works like this. From a F# script I call some managed functions which are compiled using the /clr option in vs2008. These functions call some QuantLib objects (e.g. shared_ptr<IborIndex>, etc), execute some computations and return some outputs to the F# interpreter. What happens with a specific managed function that uses the QuantLib IborIndex class is that I get a bad memory error when closing the F# interpreter. I temporarily solved my problems by using the .Net/SWIG version of QuantLib, but I'd like to continue using my custom interface. Do you have some idea? Thank you in advance, Alex. P.S. I'm still using the version 1.1 of ql. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Alexandre,
I think this is related to CLI wrappers and local static variables usage in Quantlib - there's a post by myself and a follow up by Chris T-Adams earlier this month. Cheers Simon Sent using BlackBerry® from Orange -----Original Message----- From: Alexandre Radicchi <[hidden email]> Date: Fri, 31 Aug 2012 13:23:02 To: <[hidden email]> Subject: [Quantlib-users] QuantLib managed/unmanaged leak? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |