未处理的异常 - 及时调试

时间:2012-07-12 21:53:51

标签: arcobjects

我有一个在Windows XP平台上运行良好的应用程序(扩展)。当我在Windows 7上运行此应用程序时,它会抛出此错误。我不确定是什么原因造成的。我当时认为可能是因为.net框架没有安装,但我可以在那里看到所有内容。寻找任何想法来解决这个问题。

注意:当我点击一个combox框时会出现此错误。如何通过此消息框并获得实际错误。

由于 杰伊

有关调用的详细信息,请参阅此消息的结尾 实时(JIT)调试而不是此对话框。

**************例外文字**************

System.NullReferenceException: Object reference not set to an instance of an object.
   at MapExt_Net.HEI_Extensions.layout.frmLayout.DisplaySize()
   at MapExt_Net.HEI_Extensions.layout.frmLayout.cBLayoutExtent_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

enter image description here

1 个答案:

答案 0 :(得分:0)

MapExt_Net.HEI_Extensions.layout.frmLayout.DisplaySize()中引发了异常,这似乎是由您自己实现的。你能粘贴一下这个方法的代码吗?