Login  Register

exception using QL_Fail/QL_Require

Posted by 杨 斯涵 on Dec 14, 2016; 8:28am
URL: http://quantlib.414.s1.nabble.com/exception-using-QL-Fail-QL-Require-tp17920.html

Dear all, 


i have started a new project which depends on Quantlib and i have successfully built it (in fact i currently only use QL error macros, i.e QL_FAIL)


However whenever the compiler goes to QL_FAIL line,  it gives  exception message and stopped working:


First-chance exception at 0x7503b727 in project.exe: Microsoft C++ exception: QuantLib::Error at memory location 0x0041f424..
Unhandled exception at 0x771f15ee in project.exe: Microsoft C++ exception: QuantLib::Error at memory location 0x0041f424.

my code is very simple and i use QL_FAIL like:

if(!file.is_open())
{
     QL_FAIL(" the file does not exist");
}

I tried QL_Require it gives same error.

I see ERROR macro works fine in Quantlib but cant figure out what goes wrong in my project. Could someone pls give kindly some advise?

Thanks in advance,
Hans


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users