Re: eval date-problem solved
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/eval-date-problem-solved-tp1121p1122.html
On Fri, 2007-07-06 at 16:34 -0500, JURAJ HUSKA wrote:
> I finally solved the problem I had with evaluation date slowing down
> calculations, although don't quite have an explanation why my solution
> works.
>
> Here is the solution in words: I had to dispose of SwapRateHelper
> object immediately after I added it to the instruments
> RateHelperVector and also had to dispose of the constructed
> termstructure and instruments vector. See the code below.
> Interestingly, just disposing of the instruments vector (that is, not
> disposing separately of SwapRateHelpers) didn't do the job. Anyone a
> take on this?
I guess the objects remained alive even though they had gone out of
scope. How does garbage collection in C# work?
Luigi
--
Discontent is the first necessity of progress.
-- Thomas A. Edison
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users