|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,* V* q2 A H; l4 G1 \8 b
请参见此消息的结尾。$ I# u* ?, Q U2 M0 d4 B! i
Y, F% J5 j/ k6 H) w* c9 S************** 异常文本 **************
2 Z; P; g" W% G% H, W$ C% CSystem.NullReferenceException: 未将对象引用设置到对象的实例。
, a+ X% |, ]! z/ s* U( x" j 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)- C) H, @" r1 p7 s# L
在 System.Windows.Forms.Control.OnClick(EventArgs e)
3 w/ Y4 X. p$ p4 n( v 在 System.Windows.Forms.Button.OnClick(EventArgs e)' _/ u8 C& m0 }5 b q0 v9 f: M
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)4 v; l0 Z w" Q2 Z! c
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)' y. R2 b/ Z! k8 U- v/ q
在 System.Windows.Forms.Control.WndProc(Message& m)
$ z* f8 h( [! e5 J) M; t, _ 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)+ u& P9 N8 Z1 E# A, [
在 System.Windows.Forms.Button.WndProc(Message& m)/ n V5 K% M: ?" h. o
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m): R$ X3 s: Z5 }' z3 U5 T4 ^
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)" C. N* w9 L; b5 c W/ E0 X' b
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)' |. X9 E4 n4 S# z ?6 q8 Q
9 r% g) U& ^2 I8 P ?: ?& r0 v3 p, a3 @3 ?" T/ a E7 H
************** 已加载的程序集 **************6 m+ }+ s6 \ m
mscorlib) o( L4 c$ s5 B: d9 e
程序集版本:4.0.0.0 @6 t4 a+ S* v: A2 n$ {! g
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
& H' R* w% ^2 @" p. q8 W' F8 [2 m 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll! M: T( V3 |& y
----------------------------------------% j: ~$ q* B$ j) x
Picture_Capture
7 l8 F2 M& r$ {2 r0 [ 程序集版本:1.0.0.0
( _; E" V1 P6 A+ ^ Win32 版本:1.0.0.0
4 v) Y' g- b8 A 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe5 o+ G' G7 y2 @6 A
----------------------------------------- H- T1 x3 a7 ~
Microsoft.VisualBasic+ }. W u4 g' o. h# W. H- R
程序集版本:10.0.0.0: \) k7 g$ @7 V" n2 x T
Win32 版本:14.6.79.0 built by: NETFXREL2* D3 }% _3 W1 I/ n* P6 R
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll3 V* z6 e+ e( W- C
----------------------------------------
6 \) V! i D% [' y$ qSystem.Windows.Forms
}; w' e; Y! y! j 程序集版本:4.0.0.0
( n" S: V1 }# t! c' M* R; @1 t Win32 版本:4.6.79.0 built by: NETFXREL2, i* k/ `" h$ \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
! r3 P% j" o5 o----------------------------------------
; ^- H( q7 c/ [System
* @' t6 F: P# V 程序集版本:4.0.0.0
$ R1 Z d P. m2 `1 Q, ]4 t! Q Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE1 d6 B! x( j) z8 e6 d( t F" W
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
; y5 |7 H) e5 u* K6 B4 z----------------------------------------
+ ^: R3 c( N. N0 \# b! E0 OSystem.Drawing
: C: Q9 y- F& T' }% f& b 程序集版本:4.0.0.0, Y. u- |5 H J9 _' ~% }
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
; B/ d" n4 Z2 C& w6 t2 }/ ` 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
3 V% }% [/ p: ~8 c; z: @ F: J* B---------------------------------------- j! B9 J' z! u) |
Accessibility* h+ n7 r, H9 O
程序集版本:4.0.0.02 u$ m. C( O4 f9 m3 ^
Win32 版本:4.6.79.0 built by: NETFXREL2) ^' Y7 F# ]5 b% l4 ]( W
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll& F5 n) o' V8 O& w& X% `! ~
----------------------------------------
: N* `: r/ @! kSystem.Runtime.Remoting1 L: c1 [4 K& h/ C9 o$ P' @
程序集版本:4.0.0.04 ~- c, R: w1 W6 r7 K6 [4 \* r
Win32 版本:4.6.79.0 built by: NETFXREL2* v% |/ f, b0 t5 k5 g
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
: p. {! G$ {6 d) y. A6 j5 v) L----------------------------------------
% \- X4 F* X! W/ C. Q; {/ BSystem.Configuration/ F# c4 w( @8 [5 t3 i
程序集版本:4.0.0.0
- b8 z d' K6 _ k1 c0 |' a Win32 版本:4.6.79.0 built by: NETFXREL2 u2 v. `, b" M& v
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll: Z/ ~/ O% {2 v% k
----------------------------------------
' l1 r- N) b1 B9 T; aSystem.Core
$ M1 f6 S% i/ B1 d: p7 G6 r2 u9 e 程序集版本:4.0.0.0
1 ^3 e/ ~6 f& e# s2 h Z1 n Win32 版本:4.6.79.0 built by: NETFXREL2
$ d" H5 u0 Q) s0 `* J* G# u" y0 r6 \ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
. c. U' `6 N' M. O' b- A----------------------------------------
- i6 X# T* d7 ^8 K/ A- {- |System.Xml E( q- g" i0 \
程序集版本:4.0.0.02 E A4 [- {4 p9 G2 \
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
. P: u0 t% S3 k" N _( z! K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll$ B4 z- v8 c6 n4 ?$ a
----------------------------------------6 P7 K* R+ E! ~; y- H
mscorlib.resources" O) C( Q9 D2 _9 j' o
程序集版本:4.0.0.01 v- K4 O* q6 ~ Z
Win32 版本:4.6.79.0 built by: NETFXREL2: |& p" J9 X! u9 |; N* f
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
9 }+ y, K# z5 Q( C( k----------------------------------------
u2 E B4 N- H" }3 W1 B0 DSystem.Windows.Forms.resources
2 G( @2 O8 ~* X5 W+ P% O 程序集版本:4.0.0.0
$ v- S, _$ a2 X Win32 版本:4.6.79.0 built by: NETFXREL2& y/ W+ G4 E$ B6 t
基本代码: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
& p0 B" u' Y6 K6 I. o% F----------------------------------------& ?4 Y* y) U ? E: r- N
. l* n" J7 i$ d
************** JIT 调试 **************
( w; e" P& T8 v' G9 c% i, E* A- f要启用实时(JIT)调试,7 u4 d2 ^7 o7 P' S. M. ^3 _2 J
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置& g7 c4 }% B1 i1 Y
jitDebugging 值。7 L4 r4 b: {' K
编译应用程序时还必须启用
9 N; {; a( Y$ c1 N) p, _, ?调试。! c" k. y0 I8 R. U; P A) u
5 V5 B# q% O# S1 o' ~, N @/ b/ _$ c例如:7 [1 o, x0 U/ I y4 F
$ V0 Z# Z: y5 s- S8 [& v' G' u$ `+ `
<configuration>
2 @$ Q( i$ y! T <system.windows.forms jitDebugging="true" />" `% u# A& Q6 J, f
</configuration>1 {$ A1 @ y4 R' }
, h; |. B- x& O0 s启用 JIT 调试后,任何未经处理的异常
0 U; O! a* h! B( }$ P; L+ D+ P4 Q都将被发送到在此计算机上注册的 JIT 调试器,' S7 S% c4 \& V% H8 e* @
而不是由此对话框处理。) V: p: G; Q1 e7 I! o3 k
4 ~! {4 c ~; c) W2 ]2 r# E# Z! S) `
|
|