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

Перейти к Отладке -> Исключения и пометить все поля исключений на «брошены». Отладчик должен сломаться в точке программы, в которую выбрано исключение, и оттуда вы можете решить, что вызывает его.

Смежные вопросы