StackTrace or callstack not returning line numbers BUG 
Author Message
 StackTrace or callstack not returning line numbers BUG

I want to return the callstack at runtime. The code belows does return
the call stack but line number information is missing. Is this a bug?.
My project has generate debugging information checked and I am
building it as a Debug build.

#If Debug Then
        Stack = New StackTrace(True)
#Else
        Stack = New StackTrace()
#End If

Me.txtCallStack.Text = Stack.ToString

the format I get is

        at ATW.ATWSystem.frmDiagnostic.SetGrid(ATWCollectionBase)
        at ATW.ATWSystem.ATWDiagnostic.DebugContainter(Object,
enumDebugItems, Boolean)
        at WindowsApplication8.Form1.TextBox1_KeyDown(Object, KeyEventArgs)
        at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs)
        at System.Windows.Forms.Control.ProcessKeyEventArgs(Message&)
        at System.Windows.Forms.Control.ProcessKeyMessage(Message&)
        at System.Windows.Forms.Control.WmKeyChar(Message&)
        at System.Windows.Forms.Control.WndProc(Message&)
        at System.Windows.Forms.TextBoxBase.WndProc(Message&)
        at System.Windows.Forms.TextBox.WndProc(Message&)
        at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
        at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
        at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr,
IntPtr)
        at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
        at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32,
Int32, Int32)
        at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
        at System.Windows.Forms.Application.Run(Form)
        at WindowsApplication8.Form1.Main()



Wed, 27 Jul 2005 01:01:29 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PBM: Line numbers used by Goto method do not reflect displayed line numbers in document

2. Err object does not return line number ?

3. Bug in Line number?

4. Returning the line number with the error message

5. Return Current Caret Line Number

6. BUG: ITC OpenUrl Method Does Not Return Complete Files

7. TimeScaleData will not return number of days!

8. datacombo: how can I return the "text", not number from the ListField

9. Oracle not returning numbers in recordset??

10. Select two lines, return as one line

11. Line numbers into multi-line text box

12. problem using component with asp page -- result of function not returned, instead original value returned

 

 
Powered by phpBB® Forum Software