When the msgbox that gets the framecount is included on a publish, I get what i want a msgbox("ShowMyName") when it is not I get "TestMethodNameToolStripMenuItem_Click".Code:Private Sub TestMethodNameToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TestMethodNameToolStripMenuItem.Click ShowMyName() End Sub Private Sub ShowMyName() Dim StackInfo As New StackTrace MsgBox("StackCount=" + StackInfo.FrameCount.ToString) MsgBox(StackInfo.GetFrame(0).GetMethod.Name) End Sub
When I run in the debugger it always works properly "ShowMyName". When I run it straight from my debug folder it works properly. When I run it from the publish install... it's wrong.




Reply With Quote