Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

turning call stack into a string on error

is there a way in my error handler to print out the call stack?

i'd like to log the call stack to the database on any errors being encountered.

i'm working on a toString() method for my objects so i can persist their state at the time of an error - but i'd like to print the call stack too
0
kenshaw
Asked:
kenshaw
  • 3
  • 3
  • 2
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
0
 
kenshawAuthor Commented:
does that work with VB 6?  the first link you sent was for .net
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kenshawAuthor Commented:
so there's no built in thign in VB6?
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
no, unfortunately. While in the VB IDE you can look at the call stack trace, to do that in code is not trivial.
0
 
[ fanpages ]IT Services ConsultantCommented:
0
 
[ fanpages ]IT Services ConsultantCommented:
Hi Dan,

I suggest a three-way split between kenshaw, angelIII & myself; if that's acceptable by all.

BFN,

fp.
0
 
[ fanpages ]IT Services ConsultantCommented:
No objections here.  Thanks for your time, Dan.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now