Re: Excel 2007 crashes on exit after QLXL call that returns an object

Posted by Eric Ehlers-2 on
URL: http://quantlib.414.s1.nabble.com/Excel-2007-crashes-on-exit-after-QLXL-call-that-returns-an-object-tp5666p5668.html

Hi Dave,

On Thu, 2011-12-08 at 13:27 -0800, Dave Blob wrote:

> I think I've found the problem-
>
> It looks like when CallingRanges are destroyed, they call Excel(xlfSetName,
> ...).  However I see CallingRanges being destroyed after xlAutoClose, which
> calls Excel(xlfFree).  I think this causes the seg faults.
>
> To fix the problem I added ReposityXL::clear() - which merely calls
> calllingNames_.clear().  I call
> ObjectHandler::ReposityXL::instance().clear() before Excel(xlfFree) - and
> the access violations seem to have gone away.  I can submit a patch if you
> think this it is helpful (right now I have a patch for a heavily stripped
> down version that I used to isolate the bug).

That would be much appreciated if you could send a patch.  When I
package up the next release I will try to recreate the bug and test your
fix.

Kind Regards,
Eric


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users