Go Back   Velocity Reviews > Newsgroups > C++
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

C++ - stack trace in c++ application

 
Thread Tools Search this Thread
Old 06-03-2004, 04:18 PM   #1
Default stack trace in c++ application


Hello,

Is there a way to print stack trace in a c++ application?

I would like to do this before asserting in a situation that can't be handled.

Thanks,
-Ashish


Ashish
  Reply With Quote
Old 06-03-2004, 04:20 PM   #2
Victor Bazarov
 
Posts: n/a
Default Re: stack trace in c++ application
Ashish wrote:
> Is there a way to print stack trace in a c++ application?


Not unless you write it yourself. There are no means in the language
to do "stack trace".

> I would like to do this before asserting in a situation that can't be handled.


You should explore the means available to you in the OS and the compiler
you're using. Ask in their respective newsgroups.

V


Victor Bazarov
  Reply With Quote
Old 06-03-2004, 04:30 PM   #3
Karl Heinz Buchegger
 
Posts: n/a
Default Re: stack trace in c++ application
Ashish wrote:
>
> Hello,
>
> Is there a way to print stack trace in a c++ application?
>
> I would like to do this before asserting in a situation that can't be handled.


Not in a standard conforming way.
You have to consult the documentation for your system or ask in a newsgrouop
dedicated to your system if this is possible and if yes, how.


--
Karl Heinz Buchegger



Karl Heinz Buchegger
  Reply With Quote
Old 06-03-2004, 10:00 PM   #4
Steven T. Hatton
 
Posts: n/a
Default Re: stack trace in c++ application
Ashish wrote:

> Hello,
>
> Is there a way to print stack trace in a c++ application?
>
> I would like to do this before asserting in a situation that can't be
> handled.
>
> Thanks,
> -Ashish

I don't believe there is anything specifically addressing that in the C++
Standard document.**There*is*support*for*printing*backtraces*on*all
platforms I have any familiarity with, but those are implementation
dependent.**I*just*came*across*the*discussion*on*this*website,**It's
probably a bit deeper than you want to go, but it should give you some
insight into the current status of this type of thing in relationship to
C++.

http://www.armdevzone.com/EABI/CppABI.html
# 20th February 2004 - Latest draft (1.01) of the exception handling
components implementation (ZIP, 37KB). [Last updated 20-February-2004]
# 15th August 2003 - Latest draft of the exception handling ABI(PDF, 259KB).
[Last updated 20-February-2004]

--
STH
Hatton's Law: "There is only One inviolable Law"
KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com
Mozilla: http://www.mozilla.org


Steven T. Hatton
  Reply With Quote
Old 06-03-2004, 10:06 PM   #5
qWake
 
Posts: n/a
Default Re: stack trace in c++ application
"Ashish" <> wrote in message
news: om...
> Hello,
>
> Is there a way to print stack trace in a c++ application?
>
> I would like to do this before asserting in a situation that can't be

handled.
>
> Thanks,
> -Ashish


I would also like to see this facility in standard C++. I have just posted
in comp.std.c++ asking if this has ever been considered for inclusion in the
standard. Maybe the question has been asked there before, we'll find out.




qWake
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
c# programs lieutaryan General Help Related Topics 2 09-24-2009 02:50 AM
standalone .net application jass Software 1 04-02-2009 03:11 AM
How to open Web Application pages (ASPX) in Windows application. arameshmca Software 1 02-07-2008 03:18 AM
Server Error in '/' Application Kristine Software 0 01-14-2008 09:37 PM
Server Error in '/Forms' Application. AxleWack General Help Related Topics 0 10-11-2007 01:47 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46