Hi All,
Problem Stetement:I have a problem in getting stack trace when I ues std::exception.
In my code, I allocate virtual memory for certain kind of processing and will throw the std::bad_alloc exception if memory could not be allocated. I have never handled the bad_alloc, so, what I expect here is a stack trace from windows showing the excact location where the exception was thrown. But, to my surprise it gives only the windows Runtime Error message.
But...
When I assign a value to a null pointer, in this case it is access violation exception, the windows handles the uncaught exception and gives me a stack trace of what I expected.
I don't know what I'm missing to implemet to get a stack trace for std::exception.
Please any body could help me to solve this issue.
Problem Stetement:I have a problem in getting stack trace when I ues std::exception.
In my code, I allocate virtual memory for certain kind of processing and will throw the std::bad_alloc exception if memory could not be allocated. I have never handled the bad_alloc, so, what I expect here is a stack trace from windows showing the excact location where the exception was thrown. But, to my surprise it gives only the windows Runtime Error message.
But...
When I assign a value to a null pointer, in this case it is access violation exception, the windows handles the uncaught exception and gives me a stack trace of what I expected.
I don't know what I'm missing to implemet to get a stack trace for std::exception.
Please any body could help me to solve this issue.
Comment