2015-04-18 89 views
-1

我得到这个错误,当我运行我的C#程序大约30分钟: IMAGE LINK未处理的异常发生在您的应用程序C#

这是详细信息框包含:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box. 

****** Exception Text ****** 
System.NullReferenceException: Object reference not set to an instance of an object. 
at WindowsFormsApplication1.Form1.button6_Click(Object sender, EventArgs e) 
at WindowsFormsApplication1.Form1.button7_Click(Object sender, EventArgs e) 
at WindowsFormsApplication1.Form1.timer2_Tick(Object sender, EventArgs e) 
at System.Windows.Forms.Timer.OnTick(EventArgs e) 
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

****** Loaded Assemblies ****** 
mscorlib 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR 
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll 
------ 
instagram Robot 
Assembly Version: 1.0.0.0 
Win32 Version: 1.0.0.0 
CodeBase: file:///C:/Users/kingd_000/Desktop/Instagram%20Robot/Instagram%20Robot/instagram%20Robot.exe 
------ 
System.Windows.Forms 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll 
------ 
System.Drawing 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll 
------ 
System 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll 
------ 
SKGL 
Assembly Version: 2.0.4.1 
Win32 Version: 2.0.4.1 
CodeBase: file:///C:/Users/kingd_000/Desktop/Instagram%20Robot/Instagram%20Robot/SKGL.DLL 
------ 
Microsoft.VisualBasic 
Assembly Version: 10.0.0.0 
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll 
------ 
System.Core 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll 
------ 
System.Xml 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR 
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll 
------ 
Microsoft.mshtml 
Assembly Version: 7.0.3300.0 
Win32 Version: 7.0.3300.0 
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll 
------ 

****** JIT Debugging ****** 
To enable just-in-time (JIT) debugging, the .config file for this 
application or computer (machine.config) must have the 
jitDebugging value set in the system.windows.forms section. 
The application must also be compiled with debugging 
enabled. 

For example: 

<configuration> 
<system.windows.forms jitDebugging="true" /> 
</configuration> 

When JIT debugging is enabled, any unhandled exception 
will be sent to the JIT debugger registered on the computer 
rather than be handled by this dialog box. 

我不知道如何解决这个问题,并希望这里有人能够找到如何解决这个问题。 在此先感谢!

+1

此论坛未设置为逐步协助调试。尝试将问题重述为可以回答的问题。投票结束。 –

+0

查看button6_click并查看您正在使用的指针。没有看到代码,我们没有希望告诉你到底发生了什么问题。 –

回答

0

进入调试 - >例外,并勾选“抛出”的所有例外框。调试器应该在程序中抛出异常抛出,并从那里你可以找出导致它的原因。

相关问题