Hi Peter,
this Link may be of interest for you:
http://www.fireyesoftware.com/developer/stackcleaner/
hth
Tobias
Peter Truskier schrieb:
In writing an assert method, I am trying to automatically get the name
of the method/event that raised the assertion. To do this, I am raising
my own runtime exception in the assert method, and then handling it with
an exception handler so I have access to the "stack" property of the
RuntimeException object.
The array elements of the "stack" array, however, are somewhat less then
user-friendly. For example
"Window1.Window1.PushButton3_Action%%o<Window1>" rather than
"Window1.PushButton3.Action" (as it is shown in the debugger's own call
stack popup menu). The array also contains a lot of internal RB methods
and events which I'm not particularly interested in. Most of these seem
to begin with an underscore character, though some do not (e.g.,
"TrackControl").
What is the best way to pare down the "stack" array to include only
those event and mehod names of which the user is aware, and to render
them in user-friendly text?
Thanks,
Peter
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>