Error Tracing / Call Stack
Posted on 1999-08-29
I've been taking a look at several error handling stratagies (especially in the Advanced MS VB 6.0 book) and I'm stumped.
How can I track "re-raised" errors across DLLs? For example:
Err.Raise 5, "Source", "Description"
Client.EXE calls Test1.Test1, which calls Test2.Test2 where an error occurs. The error handler in Test2.Test2 raises the unhandled error which is caught by the error handler in Test1.Test1, which again raises the unhandled error to the error handler in Client.Start. At this point I would like to walk through a stack and display something like:
5, Source, Description, Test2.Test2
5, Source, Description, Test1.Test1
5, Source, Description, Client.Start
Thanks for your time, Richard