|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,6 x' M& j+ N0 [* r4 Y
请参见此消息的结尾。
. E. e3 n' ^) B
0 |# w1 ~5 L# H3 F************** 异常文本 **************
0 n' s4 u7 F7 {System.NullReferenceException: 未将对象引用设置到对象的实例。
" f: `" F8 |% G( B0 b 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)1 H- P2 v( U' M. O
在 System.Windows.Forms.Control.OnClick(EventArgs e)
2 @$ x* C1 d- R7 i2 f 在 System.Windows.Forms.Button.OnClick(EventArgs e)
6 r+ T' k! W, _7 B% `+ h9 t 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
, Q: L( ^( p- Q4 G+ L9 Z 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
; \" z3 |) L6 b 在 System.Windows.Forms.Control.WndProc(Message& m)
4 {+ i2 }5 ` ~9 G 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)* l; \! J3 {8 Y* F; u6 u5 `# v
在 System.Windows.Forms.Button.WndProc(Message& m)
/ Y; `. I2 d, a 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
. ? O6 ?& A' f- V$ o" W/ o$ i 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)" ?- ?3 J, x5 @5 ?
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)$ i+ k$ Z, G! [* B
, L; I8 O2 N) Q( H9 l' v7 P# ~
0 c) M7 _; G; e- X- I! s% H
************** 已加载的程序集 **************) c# j& q q5 C7 V; i& c. s. r
mscorlib
0 q. _7 k+ w" B, y0 ? 程序集版本:4.0.0.0) m7 X2 j2 `0 ~% M
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
$ Z3 ]) Q* b. f 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll) G9 x1 \2 {# Y' U- z, R
---------------------------------------- j, H" J( a- R8 N6 ~: f
Picture_Capture
( k9 S; Q# I, a4 v 程序集版本:1.0.0.0
+ I5 T" u. b! d) l" r% E2 M9 \ Win32 版本:1.0.0.0% ^, k- e% _2 `0 Y
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe: u! e) i5 y# P8 w+ h* r
----------------------------------------9 b0 F* Z0 m" ~ o1 f
Microsoft.VisualBasic8 P6 S5 e( c' |; r) j
程序集版本:10.0.0.0" | D1 |$ k, [7 g# T0 z
Win32 版本:14.6.79.0 built by: NETFXREL2( m8 L! |/ Y" h: I
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
& J: E+ U6 P% b( n* p8 Z----------------------------------------3 H1 C `. Y9 {
System.Windows.Forms
# E. {3 T$ H# c" w7 v( Q 程序集版本:4.0.0.08 n1 `, ~& B9 Z5 l4 p
Win32 版本:4.6.79.0 built by: NETFXREL2
! e K2 E' _5 J, p 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll8 q; W% ^/ |, [5 y' L! q
----------------------------------------9 l) z0 O4 f2 q
System
/ X4 }' s6 V7 k2 w- A4 Y f1 E; `8 k 程序集版本:4.0.0.0* `( X3 i, k# h& l& D
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
$ K5 w* H7 t* D L2 F# |+ V 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll7 n* ]+ W+ M+ X
----------------------------------------
$ g, V# I7 ~7 F) d$ C0 c- v6 @& zSystem.Drawing
0 ?% N/ s7 u" t5 _6 w" ? 程序集版本:4.0.0.0
; U( g' q+ O6 a0 r) n5 e Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
S5 Q' P7 z' n9 M 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll& u. E8 m* l6 y: `
----------------------------------------" y5 U1 n# q% X7 {" e
Accessibility
/ _1 q+ M/ `+ ]) ?4 B! f8 g 程序集版本:4.0.0.0
& [ m& X* o5 W+ F0 s Win32 版本:4.6.79.0 built by: NETFXREL2& r& p5 ]8 n- s9 A; p" C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
+ m. R) P8 Y+ v1 }: p) F----------------------------------------
0 i( ?# c' L+ [1 y+ oSystem.Runtime.Remoting# P3 u5 I! V3 }+ i7 `* a; y
程序集版本:4.0.0.0
" _( ^ i. n; t+ k Win32 版本:4.6.79.0 built by: NETFXREL2
' j; _8 V9 s. t0 E, t |( P3 b1 K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll2 c& B$ U/ K0 J
----------------------------------------' C w' `3 X' A: g
System.Configuration
; Z5 [. T7 R `, k; [: w1 g. D; n 程序集版本:4.0.0.0
8 ~0 c+ Z+ ?' D: g: D' D8 ]2 f Win32 版本:4.6.79.0 built by: NETFXREL2' q, f% ?/ j( Q1 l$ T: j
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll$ D1 `1 N+ k. t" q
----------------------------------------
" k$ [8 E5 w; X9 I7 f; j, V9 F! oSystem.Core
' g7 w3 _! x6 B- ?& r% e. f 程序集版本:4.0.0.0
# s& H& h% g. c" I Win32 版本:4.6.79.0 built by: NETFXREL2& A. G8 K2 B% ~
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
$ h5 n4 }; e7 Y9 Z/ g. b----------------------------------------
& w) w4 L# u4 sSystem.Xml
' j3 U* Q' Y- G0 o! ` 程序集版本:4.0.0.0
: ~9 V( m6 G. T5 b Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE7 e* m! ?" l6 P" ~# [
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
& w' t, L5 X* h; a, N----------------------------------------
: I x. N8 ^) ?" [& Bmscorlib.resources
9 T7 Y$ q+ [& u 程序集版本:4.0.0.05 x: j' s& Y( {( R
Win32 版本:4.6.79.0 built by: NETFXREL2
6 x& ?( _0 b- c+ }! R. p5 c' i1 p 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
, S. x8 |: r" f2 H----------------------------------------" s3 u/ z' q0 n% E) ^! A" Y
System.Windows.Forms.resources
6 \/ e2 B" g3 F/ ?/ M% ~8 s 程序集版本:4.0.0.03 I) f4 t d5 v- g! [8 ]
Win32 版本:4.6.79.0 built by: NETFXREL21 n" c8 i$ e( W! L. B
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll$ [) Q6 x3 k& b7 K: }( w
----------------------------------------
+ ?- J1 o) Z( |3 ~3 f" z& [, [% u3 n, ]" K _' K% R* ?1 l Y
************** JIT 调试 **************: J0 V7 G9 `: _ @- W& M5 |
要启用实时(JIT)调试,
6 i7 _$ o; w, `( e/ B. q该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置' O2 P" g8 F: E) ?' t
jitDebugging 值。
& K9 m+ J) v0 [- l3 f' c# E$ S编译应用程序时还必须启用
& V! ?, |: ?' {1 Q+ m6 p" @调试。
, ~% d: H/ g( |/ m* L# \' C/ r, y, a8 W7 h% ]; _
例如:
/ r& H3 T' \! a+ K' k
& T( W3 D0 d; S a4 K<configuration>
% P% q+ J: t2 {0 s' n7 B <system.windows.forms jitDebugging="true" />5 J! E8 M7 a# n x# u3 l8 ~ u5 I
</configuration>
( b# c8 _3 @: C- U& y( E( e& e: I6 C( z4 W
启用 JIT 调试后,任何未经处理的异常* ? ]$ @. x# B& e k8 t
都将被发送到在此计算机上注册的 JIT 调试器,
5 a1 M H/ y4 m, l而不是由此对话框处理。
1 i: y! Z; v4 A; X$ A7 t4 c! d. a
; U! U9 L3 h" { Q/ e0 O2 B- c3 o |
|