Posted by
Dan Krop on
URL: http://quantlib.414.s1.nabble.com/Failed-debug-assertion-in-EquityOption-example-VS2010-tp5860.html
Hello Quantlibbers,
I have built QuantLib from the R01010x-branch (rev. 17640) source with no compiling or linking errors in both Debug and Release mode using Visual Studio 2010. I have no problems running the EquityOption example in Release mode, but I get a failed assertion when I run in Debug mode. The failed assertion is "invalid null pointer" and the stack is posted below. The failure is coming from the initialization of the finite difference engine in the TridiagonalOperator from the line "diagonal_=Array(0)". Has anybody else seen this? This isn't a super serious problem since everything works in Release mode, but it would be nice if I fix it so that I could use the debugger on my program.
> msvcp100d.dll!std::_Debug_message(const wchar_t * message, const wchar_t * file, unsigned int line) Line 15 C++
EquityOption-vc100-mt-gd.exe!std::_Debug_pointer<double>(double * _First, const wchar_t * _File, unsigned int _Line) Line 698 + 0x15 bytes C++
EquityOption-vc100-mt-gd.exe!std::copy<double const *,double *>(const double * _First, const double * _Last, double * _Dest) Line 2225 + 0x13 bytes C++
EquityOption-vc100-mt-gd.exe!QuantLib::Array::Array(const QuantLib::Array & from) Line 224 + 0x20 bytes C++
EquityOption-vc100-mt-gd.exe!QuantLib::Array::operator=(const QuantLib::Array & from) Line 276 + 0xc bytes C++
EquityOption-vc100-mt-gd.exe!QuantLib::TridiagonalOperator::TridiagonalOperator(unsigned int size) Line 31 + 0x32 bytes C++
EquityOption-vc100-mt-gd.exe!QuantLib::FDVanillaEngine::FDVanillaEngine(const boost::shared_ptr<QuantLib::GeneralizedBlackScholesProcess> & process, unsigned int timeSteps, unsigned int gridPoints, bool timeDependent) Line 54 + 0xa3 bytes C++
EquityOption-vc100-mt-gd.exe!QuantLib::FDEuropeanEngine<QuantLib::CrankNicolson>::FDEuropeanEngine<QuantLib::CrankNicolson>(const boost::shared_ptr<QuantLib::GeneralizedBlackScholesProcess> & process, unsigned int timeSteps, unsigned int gridPoints, bool timeDependent) Line 51 + 0x70 bytes C++
EquityOption-vc100-mt-gd.exe!main(int __formal, int __formal) Line 184 + 0x8c bytes C++
EquityOption-vc100-mt-gd.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C
EquityOption-vc100-mt-gd.exe!mainCRTStartup() Line 371 C
kernel32.dll!756e3677()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!77649f02()
ntdll.dll!77649ed5()
Thanks in advance,
Dan
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights.
http://p.sf.net/sfu/splunk-dev2dev _______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users