Hi Dave,
also, Du weist Sachen ... der Tipp mit dem New() war absolut erfolgreich. Hast Du eine Idee woran es liegen könnte?
Mit Stack Trace habe ich mich jetzt ca. 15 Minuten meines Lebens (und zwar die gerade vergangenen) beschäftigt. Hier mein wohl eher Rudimentäres Ergebniss der ganzen Aktion:
High Up the Call Stack, Method: Void MenuItem1_Click(System.Object, System.EventArgs)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void OnClick(System.EventArgs)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void Execute()
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Boolean Invoke()
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Boolean DispatchID(Int32)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WmCommand(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WndProc(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WndProc(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WndProc(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WndProc(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void OnMessage(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void WndProc(System.Windows.Forms.Message ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: IntPtr DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: IntPtr DispatchMessageW(MSG ByRef)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Boolean System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void Run(System.Windows.Forms.Form)
High Up the Call Stack, Line Number: 0
High Up the Call Stack, Method: Void Main()
High Up the Call Stack, Line Number: 0
Wurde erstellt mit folgendem Code:
Try
Dim Child As New ChildWin
Child.MdiParent = Me
Child.Show()
Catch ex As Exception
Dim strace As New StackTrace
Dim count As Integer
Dim file As New StreamWriter("c:\tmp.txt")
While count < strace.FrameCount
Dim frame As New StackFrame
frame = strace.GetFrame(count)
file.WriteLine("High Up the Call Stack, Method: {0}", _
frame.GetMethod())
file.WriteLine("High Up the Call Stack, Line Number: {0}", _
frame.GetFileLineNumber())
count = count + 1
End While
file.Close() Ach ja, ich habe die Problematik hierfür aus dem Laufenden Projekt herausgelöst um andere Probleme und Effekte auszuschalten ... daher die etwas anderen Bezeichnungen.....
Danke schon mal für den Funktionierenden Lösungsansatz..... |