2015-04-18 88 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

進入調試 - >例外,並勾選「拋出」的所有例外框。調試器應該在程序中拋出異常拋出,並從那裏你可以找出導致它的原因。

相關問題