Stack Dumping

Does anyone know a way to retrieve the contents of the
procedure call stack, Like the view call stack command
off the menu.

What I want is to dump an error log when an executable
crashes.  I want the log to show the procedure calls
and the parameters.  Since the IDE can do it, I was
hoping someone knows a way to do it in code.

Thanks.

--
        Brad Mongar

                pala...@nebula.org
                bmon...@mail.state.mo.us
                mon...@mail.health.state.mo.us

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzBF0IsAAAEEANA9NZ62jKWWILT8yIjNUw3PQ9clOgDqu2hLZigEXJblW1qW
adiYd4iqsWemRnoGQy5+UYLdtCDD2/VveKkyp4ufzNxeyeQOGGHwTzy3+O0e+IFf
0CWjQuLzhqFdHFtpjNm0uwEZIQmmYDPOwOFj/ae+vube6YFqJhxZS7mFCEp9AAUR
tBhibW9uZ2FyQG1haWwuc3RhdGUubW8udXO0GGJtb25nYXJAbWFpbC5zdGF0ZS5t
by51c7QsQnJhZCBNb25nYXIgPG1vbmdhYkBtYWlsLmhlYWx0aC5zdGF0ZS5tby51
cz6JAJUDBRAwfmG5HFlLuYUISn0BAWVHA/4tzkWUSFURJL92YbjlRKfhDo+PNvwu
VBMP7fi5clbVfr79iOuSuGU1SFi22Vei3MAJknRQk6lYCVGtFNuQeSp94kaZksJF
KAofgvlibJkM4T7x7O84yuIDR9XJ/GI67RgRhl3+1xw/ndmug9gBo5mECt16aQoB
djkIb5/ph5AOCA==
=tqvn
-----END PGP PUBLIC KEY BLOCK-----