catching access violation, compiler settings and xl addin crash.
Posted by
P Nelnik on
Jun 11, 2010; 1:49am
URL: http://quantlib.414.s1.nabble.com/catching-access-violation-compiler-settings-and-xl-addin-crash-tp12120.html
Good morning all,
Due to the current quantlib compiler settings, access violations are not caught with catch(...)
as a result we can have some rather ungraceful crashes.
I wonder are there reasons why the settings are the way they are?
I'd suggest changing the settings.
To do this in MS Visual C++ 2008, click on:
Project -> Properties -> Configuration Properties -> C/C++ -> Code Generatoin
and set:
Enable C++ Exceptions
to
Yes With SEH Exceptions (/EHa)
rather than
Yes ( /EHsc)
Here are some details of the compiler settings:
http://msdn.microsoft.com/en-us/library/1deeycx5.aspx
Right now, when I use the quantlib XL addin in excel ( 2007 ) as excel is closes it crashes ( almost always).
There are two problems with this,
1: some error is thrown
2: the error is not caught
By changing the settings above we can at least solve number 2.
Cheers
Philip
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev