|
From: Ruilong Xu <xur...@ho...> - 2021-09-20 08:40:28
|
Hi, I am reimplementing hestonslvmodel.cpp by Python. SafeFdmMesherIntegral works well. But SafeFixedLocalVolSurface may cause error in testAMoustacheGraph, the following is what I get: double free or corruption (top) Backend terminated or disconnected.Fatal Python error: Aborted On Sep 20 2021, at 4:03 pm, Luigi Ballabio <lui...@gm...> wrote: > Hello, > shared_ptr should be supported correctly. How are you trying to wrap them? > > Luigi > > > On Fri, Sep 17, 2021 at 4:05 PM Ruilong Xu <xur...@ho... (mailto:xur...@ho...)> wrote: > > Hi, all > > > > Some members of FdmMesherIntegral and FixedLocalVolSurface are shared_ptr, it means that Python GC will cause error in sometimes. > > Is there an easy and safe way to make Python wrappers of them by SWIG? > > Best Regards, > > Ruilong > > > > _______________________________________________ > > QuantLib-users mailing list > > Qua...@li... (mailto:Qua...@li...) > > https://lists.sourceforge.net/lists/listinfo/quantlib-usersdouble free or corruption (top) (https://lists.sourceforge.net/lists/listinfo/quantlib-users) > > > > Backend terminated or disconnected.Fatal Python error: Aborted (https://lists.sourceforge.net/lists/listinfo/quantlib-users) |