Link to home
Start Free TrialLog in
Avatar of wolfjjj
wolfjjj

asked on

Call Stack

Hi,

I was wondering if it is possible to reproduce the call stack information in a compiled binary as if you had pressed CTRL+L in devel.,

i.e.

private sub whatever()
  on error goto errHandler

  ...

errHandler:
  if err.number <> 0 then
    msgbox callStack
  endif
end sub

public function callStack() as string
  //gathers and returns a string containing the call stack
end function

Any ideas?

Thanx

PS I will adjust the points as necassary.
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

i know that in  VB.net you will have this build-in, but in VB6- ?
listening & Learning
ASKER CERTIFIED SOLUTION
Avatar of morgan_peat
morgan_peat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wolfjjj
wolfjjj

ASKER

It appears <= VB6 cant do what I've asked and morgan_peat has suggested a viable solution.

Thanx for you input.