|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
1 r q& M! g1 I# _( t& P* s! S请参见此消息的结尾。7 J* [: b0 j' j* I
4 W* h" y' B* b3 z; m2 H$ N9 g************** 异常文本 **************! O/ c# ?# s. S: ~
System.NullReferenceException: 未将对象引用设置到对象的实例。% m; ]+ C2 n; k' R2 f
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
; S5 ?5 a1 s4 D% B1 `+ q 在 System.Windows.Forms.Control.OnClick(EventArgs e)
" ]: z0 H) J0 t* ~, K 在 System.Windows.Forms.Button.OnClick(EventArgs e)
4 B0 G1 b& N# N8 @ 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)' ]4 A0 Q( Z* s0 k5 ~3 ^
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
2 ]' H% }; I% p3 b$ b 在 System.Windows.Forms.Control.WndProc(Message& m)
* ^) M5 v5 v( y7 Z% c 在 System.Windows.Forms.ButtonBase.WndProc(Message& m). a4 X% t0 @& h* W
在 System.Windows.Forms.Button.WndProc(Message& m)# d8 q4 G4 I/ y/ S$ f
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
* R. v- S6 h( ^ 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
& s' g( q) B2 S1 w5 G& w 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)8 c1 m& b. u6 \
, T. ]4 v/ o* G- b" Z
% Z! q" M$ Z6 ~7 S; _! E************** 已加载的程序集 **************
6 l; S: D2 w; F+ m6 M$ Wmscorlib/ N' x$ t7 ^$ ~! \& _
程序集版本:4.0.0.0- U) ]) R6 V* B; p9 r$ f6 H P
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
, S# d, }# H. S' H2 ~/ N# o 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll: j1 [: O3 R# s1 f
----------------------------------------
! M8 X/ s& d! f0 S8 |/ m& JPicture_Capture" U3 i) S, Z. W, y* O
程序集版本:1.0.0.0% t1 M, @9 L8 k1 b( ]
Win32 版本:1.0.0.0
/ M& V! k/ Q8 s' x$ I1 Z* D) l 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
/ q3 n; X* z" R----------------------------------------
; M. Z8 b: e* k6 _( AMicrosoft.VisualBasic3 `. o. k8 a% R+ G+ {
程序集版本:10.0.0.0* n# \2 Y7 ^, Y2 G& u8 I0 C
Win32 版本:14.6.79.0 built by: NETFXREL2
, j. Z4 Y' \1 g! e9 k' M 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll. V' l; Q# b4 ?/ `
----------------------------------------
! T$ B4 K3 _6 o8 j- w, G# X* s) ZSystem.Windows.Forms
1 C: P% d0 O: O4 d* }" a 程序集版本:4.0.0.0
! m% d- G2 g+ n7 y7 J$ u& U Win32 版本:4.6.79.0 built by: NETFXREL2
5 S7 H, I0 k- M( |4 ~3 k 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll3 f7 |' A! E: L
----------------------------------------
1 h0 X1 j8 x3 `! P7 o0 wSystem
0 a4 H1 s( j" ?+ j1 {2 q 程序集版本:4.0.0.0; i6 O! {6 F# u; n: O0 O/ r
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
% M- W1 D4 W/ i- X: c% z 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll z$ {1 }* D, H
----------------------------------------& G g; f3 e& ? D# ]
System.Drawing! g0 M1 y4 o0 G6 I/ H1 x
程序集版本:4.0.0.0
) @ w) F2 f* g |+ S: k Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
0 ^$ ]+ Z1 X! K3 O# r- {' x+ n 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
% Q# p8 V8 p7 V* m7 c0 g* C----------------------------------------1 q5 Z& j' z1 ?1 K& N7 _& P# _( ?- b% D
Accessibility
8 r* h# R6 U) q, Y: V3 j 程序集版本:4.0.0.0
; E) |0 r. v I+ q+ t0 P Win32 版本:4.6.79.0 built by: NETFXREL2# q. Y1 P. P, D& V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll3 O7 Y% R/ e. `9 L9 s' {
----------------------------------------
1 Q) P# _ M* R7 i1 i: ^System.Runtime.Remoting
* f6 I3 x! U* Y/ V4 K+ W 程序集版本:4.0.0.0
) {/ l6 q6 i; \, t) T$ D Win32 版本:4.6.79.0 built by: NETFXREL2
2 `. x, w* A2 T5 f# ^2 [% C t 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll8 ]0 T% K1 u2 n3 V V/ d
----------------------------------------
1 @3 {% ~* [5 i+ y8 K% y$ zSystem.Configuration/ C7 M% ]; b- i6 u9 P
程序集版本:4.0.0.00 H( r8 ?, h; @ S) H1 C
Win32 版本:4.6.79.0 built by: NETFXREL2
o4 _# N" D' _: V3 Q0 C, O 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
N5 ~: Q" _: i6 U1 e! D- v! ]8 t----------------------------------------: W8 K0 [" [9 d- x# D
System.Core( w8 p X& ^, p: S: \+ i
程序集版本:4.0.0.0
3 J* X. _! s) ~$ I# S! n$ V6 L0 B Win32 版本:4.6.79.0 built by: NETFXREL2
: z; i. J6 O0 P' ?- G" B- m 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll- u" F- R; i3 M+ G8 a5 f+ M
----------------------------------------# }6 U1 [" @) G( a/ Q$ I
System.Xml- f, q' ^' c- w5 z: v
程序集版本:4.0.0.0! J `1 {- `2 y9 ^
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE0 }8 m. r' U% H: h7 O6 g
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll2 y1 m: [9 i. B: m; I9 Q9 J. B# A
----------------------------------------* I7 b0 ?+ u( h# K( X& K& V3 Q4 }
mscorlib.resources
I/ e( l% ?- ]3 ]( j 程序集版本:4.0.0.0
1 a! J3 [6 J& ?; l/ E; G Win32 版本:4.6.79.0 built by: NETFXREL24 q$ d1 o! Z% z# n7 W
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll9 z/ v; \( x1 X
----------------------------------------
" u* I7 |& G7 L |, i) DSystem.Windows.Forms.resources' ^- o w! P5 h, V& l2 I; ]2 A, B
程序集版本:4.0.0.0
8 Q* B4 x+ d' p' l" ?* c( v4 _/ m Win32 版本:4.6.79.0 built by: NETFXREL2
& v5 Q" _2 V2 p% p 基本代码: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
% F) \7 e5 Z9 M0 |- g, l----------------------------------------
- P& T1 v V9 I: y, Z$ \2 {; }; d
************** JIT 调试 **************+ A, k6 T+ V5 z* Z2 t
要启用实时(JIT)调试,
6 ^5 X1 l) t$ d; Q% _! v该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
/ p1 N5 V- z; C' t2 S, \- yjitDebugging 值。
8 h" L* O8 n& C编译应用程序时还必须启用
$ O+ @8 i1 p6 G调试。. r# Q+ }3 m7 ^& C5 o% G, o
$ X2 e2 x8 b5 @& f# |+ C' c: m) ]例如:
; y8 o: G) U+ j7 \; g% p0 t$ k, u2 @2 ^( B: k% C1 I* O
<configuration>. S& U$ z* I, J5 s" C$ e* ]( s9 m
<system.windows.forms jitDebugging="true" />; B) T3 A8 h! f- p& [' a
</configuration>
+ Q8 q. `) b& p& W3 E5 s8 `( O# M4 A+ c0 `) T
启用 JIT 调试后,任何未经处理的异常( K. H' F# S* G! g
都将被发送到在此计算机上注册的 JIT 调试器,
5 A: s4 H0 B* Z9 V+ i3 H1 e7 ]而不是由此对话框处理。
8 a; w, Q2 ~4 t$ K4 _
* {5 V* j) I8 `' q; T' P |
|