Login  Register

Re: C++ exception Stack Trace after raising quantlib application exceptions.

Posted by Luigi Ballabio on Dec 01, 2008; 11:27am
URL: http://quantlib.414.s1.nabble.com/C-exception-Stack-Trace-after-raising-quantlib-application-exceptions-tp6849p6850.html

On Mon, 2008-12-01 at 11:14 +0100, Eduardo Montoya wrote:

> [...] it's quite difficult to me to understand some error messages as
> well as figure out what caused it. Do you think, I mean code
> mantainers, it is possible to add some kind of exception stack trace
> to all quantlib application exceptions?
>
> I was thinking in something like:
>
> http://www.eyt.ca/blog/item/108/
>
> please let me know if this could be a good improvement or if it is a
> bad idea! I would be glad to work in this improvement if you all think
> it could be a nice feature!

Hi Eduardo,
        file and line information can already be added to the error messages.
If you're on Linux or Mac OS X, run

./configure --enable-error-lines

and rebuild; if you're on Windows, edit ql/userconfig.hpp and uncomment
line 41 (the one that #defines QL_ERROR_LINES.)

Stack trace information would be nice, too.  If you want to submit a
patch that does it, you're welcome.

Later,
        Luigi


--

All generalizations are dangerous, even this one.
-- Alexandre Dumas



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users