启动时未处理的异常。程序将不再启动。 [英] Unhandled Exception at startup. Program will no longer start.

查看:131
本文介绍了启动时未处理的异常。程序将不再启动。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序在启动时开始给我这个(IDE中的调试模式):



Penguine 2015中发生了未处理的System.InvalidOperationException类型异常。 exe



附加信息:创建表单时出错。有关详细信息,请参阅Exception.InnerException。错误是:对象引用未设置为对象的实例。





以上是在例外标题框[?]并带我去:

Application.Designer.vb



我有这个代码:



My program has started giving me this at startup (debug mode in IDE):

An unhandled exception of type 'System.InvalidOperationException' occurred in Penguine 2015.exe

Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.


The above is in the exception caption box[?] and takes me to :
Application.Designer.vb

at which I have this code :

<Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
       Protected Overrides Sub OnCreateMainForm()
           Me.MainForm = Global.Program_Plotter_  2015.ProgramPlotter  ' this line is green highlight

       End Sub





当我将光标停在Me.MainForm上时,我得到Me.MainForm | Nothing



我不知道如何解决此问题。我是一个没有编程学习的业余爱好者,之前从未见过这个!



When I park the cursor over the "Me.MainForm" I get "Me.MainForm|Nothing"

I have no idea how to resolve this issue. I am a hobbyist with no schooling in programming, and have never seen this before !

推荐答案

如何将问题标记为已解决?

Valery Possoz获得有用或正确。她的建议导致我解决了这个问题。
How do I mark a question as "Solved"?
Valery Possoz gets either a "Helpful", or a "Correct". It was her suggestion that led to me solving this.


这篇关于启动时未处理的异常。程序将不再启动。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆