473,322 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

stack trace

bob
Hi,

I have no idea if this is possible but I'll ask anyways.

I'd like to know if there are any techniques/patterns/libraries
available (I'm thinking Boost) that will provide details of a stack
trace upon crash. Something similar to that available in Java.

The codebase is legacy so it would have to integrate with that.
Upgrades and such like aren't really a possibility so something thats
pluggable or easily integrated into an existing codebase is what I'm
after.

thanks and regards

GrahamOooooooooooooooooo

Jun 14 '06 #1
5 4376
bo*@blah.com wrote:
Hi,

I have no idea if this is possible but I'll ask anyways.

I'd like to know if there are any techniques/patterns/libraries
available (I'm thinking Boost) that will provide details of a stack
trace upon crash. Something similar to that available in Java.

The codebase is legacy so it would have to integrate with that.
Upgrades and such like aren't really a possibility so something thats
pluggable or easily integrated into an existing codebase is what I'm
after.

Rather OT, but you could either run the app in a debugger, or if your
platform supports them, look at the generated core file.

--
Ian Collins.
Jun 14 '06 #2
bo*@blah.com wrote:

I'd like to know if there are any techniques/patterns/libraries
available (I'm thinking Boost) that will provide details of a stack
trace upon crash. Something similar to that available in Java.


There's a tool that does this. It's called a debugger. <g> Java builds
one into every application, whether you need it or not.

--

Pete Becker
Roundhouse Consulting, Ltd.
Jun 14 '06 #3
bob
Thanks Peter whats a debugger ? (thats common feature of the english
language called sarcasm and its built into most languages).

Thanks Ian but no corefile available, I'm on windows.

Anybody have any other ideas... apart from Pete ;)

G

Pete Becker wrote:
bo*@blah.com wrote:

I'd like to know if there are any techniques/patterns/libraries
available (I'm thinking Boost) that will provide details of a stack
trace upon crash. Something similar to that available in Java.


There's a tool that does this. It's called a debugger. <g> Java builds
one into every application, whether you need it or not.

--

Pete Becker
Roundhouse Consulting, Ltd.


Jun 14 '06 #4
bob
thanks dude. Just what I was after.

G

owillebo wrote:
http://www.codeproject.com/threads/StackWalker.asp


Jun 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
Hi, in my c# code I have something like this: try { ... } catch (Exception ex) { ... throw ex; }
3
by: Mike Schilling | last post by:
Instances of SystemOutOfMemoryException do not contain a stack trace. Easy test to verify this: class OOM { public static void Main() { try { Object arr = new Object; } catch...
0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
1
by: Jason Coyne | last post by:
I am trying to use the StackTrace class to get my current stack trace for some logging. Everything is working fine, except when I am using threading (specifically WaitCallBack and...
3
by: Jeremy | last post by:
While working with ASP.NET I've sometimes encountered errors in my applications, but I've always known exactly why I'm getting the error and have been able to fix it. So I've never needed to...
2
by: Lasse Vågsæther Karlsen | last post by:
If I got the following code: try { // something that might throw an exception } catch (Exception ex) { // Log contents of ex here throw;
3
by: barker7 | last post by:
I am calling an unmanaged C++ method from C#. When an exception occurs in the C++ code, it gets caught in our C# code. CSharpMethod() { try { NativeCPPMethod(); } catch (Exception e)
5
by: Mr. SweatyFinger | last post by:
WHY CAN'T THE CLOWN -HOLES WHO WROTE ASP.NET PROVIDE AN ERROR LINE NUMBER??? HONEST TO SH@THOLE PETE Server Error in '/New Folder (7)' Application....
4
by: call_me_anything | last post by:
Here is a code to have a debug printf : #ifdef DEBUG #define DEBUG_printf(...) {printf(":",__FUNCTION__);printf(__VA_ARGS__);printf("\n");} #else #define DEBUG #endif int main () {
3
by: Dave Anson | last post by:
I have a custom exception and I want to write the information to the event log, including the Stack Trace. I can create the message and write to the event log no problem, but the Stack Trace is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.