|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,$ f; C4 i9 J; i& C8 O# q8 r/ u
请参见此消息的结尾。/ q) t; D1 Q" ^( M. G# X5 W
h, t: \0 A' Z* }7 R( y
************** 异常文本 **************8 P( O- f. }+ J6 ^' o& R( }: W
System.NullReferenceException: 未将对象引用设置到对象的实例。
/ J4 s& V4 E) V" X! c 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
* F6 m3 A. `% t ^' ]! L! Y 在 System.Windows.Forms.Control.OnClick(EventArgs e), Y( L0 g7 M, s9 A
在 System.Windows.Forms.Button.OnClick(EventArgs e)5 a; ^9 V! ^( G7 [ `; m7 D
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
9 Q* }! C! d/ f8 p) a 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)' v6 n0 c- c, r( R/ o
在 System.Windows.Forms.Control.WndProc(Message& m)
9 `6 c# i* C& e 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
; h) q- X! y+ @9 r L/ z6 K 在 System.Windows.Forms.Button.WndProc(Message& m)
7 c$ ]% _( b) ~0 x 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
& ~2 r1 [( v4 P) C6 @+ j 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
. S# X* {* k% B z 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) O2 u8 A2 e2 x0 I: I
0 Z. H8 @. j C, a$ c v
2 q# {; U) w& X, C# b************** 已加载的程序集 **************
% f$ z! O+ s" k7 Emscorlib
7 @* H; ^4 S& s- t8 H 程序集版本:4.0.0.0
5 a' `' J/ {8 W# [ Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
1 u. A$ A+ N! v+ l 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll" J7 B5 [) a+ M* e
---------------------------------------- F, ]5 H. m- }1 G
Picture_Capture
& ? b8 J% w0 |: F" z. z: v 程序集版本:1.0.0.0" e- d7 G" b, n
Win32 版本:1.0.0.0, Q: @2 r/ r$ Q3 d+ E
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe' b# k/ q& ^7 U5 q/ I! B
----------------------------------------8 W4 {. x, T' ?! C# c, e
Microsoft.VisualBasic
# N f7 I" k$ S3 n% C8 ]7 u( T 程序集版本:10.0.0.0
) e) o$ I" k4 n- x2 ~: ] Win32 版本:14.6.79.0 built by: NETFXREL2, ^% S* l w* m/ y0 T: {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll' Y) j, B3 S" ~- G
----------------------------------------- E( v6 T+ z2 c5 U0 U
System.Windows.Forms0 W6 u$ r6 @, D* I, ~: F
程序集版本:4.0.0.0
# v/ S4 V6 J; W Win32 版本:4.6.79.0 built by: NETFXREL25 s9 ^+ _* V* P6 ^; ^
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll9 @1 i: t7 r6 o8 B o0 E5 L4 S
----------------------------------------; c& Z7 J# g1 f% P
System
* w e$ v r f) [. B" g 程序集版本:4.0.0.06 S9 v- S7 y" o% `1 `
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE4 s4 W8 `) ^' `# c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
# @3 s- P( A8 u- w$ y5 c2 f----------------------------------------
& I- N. n" Z- m- z8 K4 S( o+ L1 RSystem.Drawing, Y, r3 x! q, Z6 Q% F
程序集版本:4.0.0.0
- ?( C# q6 p' ` Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE6 q& g; n% T9 I, J
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll, S6 Y# o3 G' S$ o
----------------------------------------
9 E9 f% v; i+ {8 m" fAccessibility5 R. S1 c- ]" w- b
程序集版本:4.0.0.0
5 ]3 h! k9 k1 Z4 y$ a# W- a Win32 版本:4.6.79.0 built by: NETFXREL2
1 t# q) N) S- v! r) v; Q( T0 a9 Y- k 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll5 M! j# H0 n: e# U( ~
----------------------------------------
$ p" x. Y6 Q6 p3 ySystem.Runtime.Remoting& v- u P# k, O9 V$ m- m
程序集版本:4.0.0.0
. a7 L& \; \7 ~3 ? A3 c( t Win32 版本:4.6.79.0 built by: NETFXREL2
1 ?; \0 d( B5 d7 J$ D7 J 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
) ?# o2 M; y4 ?5 g* U4 q----------------------------------------
% M: L7 F2 Z7 [System.Configuration
0 w. l0 o4 S1 O& T; Q 程序集版本:4.0.0.0& u- K# \9 m2 O" Z
Win32 版本:4.6.79.0 built by: NETFXREL26 P) Y% n Q& b" a, p' ?
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
, E+ K% ?8 C: i# }- o$ B----------------------------------------$ }+ h q9 s H( Z9 f
System.Core; g9 }" G c7 S8 G6 _5 [
程序集版本:4.0.0.0
5 z# O9 n$ n1 w- V; \ Win32 版本:4.6.79.0 built by: NETFXREL27 L2 | U# E- ?1 ?( w5 @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
' R1 _# k/ Y5 ~/ T9 o1 ~1 H$ x7 c----------------------------------------: p9 T3 T1 A3 E( _; |4 L' a3 m0 `
System.Xml! ^1 |# y$ v+ S f+ g
程序集版本:4.0.0.0
8 d% P" L8 I `- D; D Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE6 k) E( _% d$ E* E4 f
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
4 y6 c9 k( |" x----------------------------------------
; \* D9 M8 S h* W0 i& C% {1 smscorlib.resources
4 T9 F H7 ?+ R5 ^/ @ 程序集版本:4.0.0.0
; I% a& [# Z% P* J# H: ?# X Win32 版本:4.6.79.0 built by: NETFXREL2$ {- h% T& O, n; H3 Y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll1 r: D/ s0 l. B8 S/ Y5 X' e: r
----------------------------------------; C: K B% v' Q$ {& n9 h0 L) q) |
System.Windows.Forms.resources+ T% ^3 b( _2 m( [. o' t8 p5 S
程序集版本:4.0.0.0+ a5 u: r# S5 Y: H# r
Win32 版本:4.6.79.0 built by: NETFXREL2
" g* d8 r( m( f) c+ Q# c 基本代码: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
4 U& N* F+ G* R" j8 S% \----------------------------------------
0 V1 U& \6 t1 J8 s; N9 v: i% J* F, r m" P7 U/ m. o8 d7 d T2 t! F
************** JIT 调试 **************% ]# p1 q5 u ?' x5 {1 f
要启用实时(JIT)调试,
2 x( t+ _7 [- t! L4 }该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置, W+ P( M, W* M+ n/ W/ x' e+ O& c
jitDebugging 值。
" s% x# v" ?3 s+ {6 g# c1 @编译应用程序时还必须启用4 p, J. K! Y; z/ L$ F
调试。* A; e5 m1 m% C! U( N: y
" l6 ?; X& H; g. f% a N. @- _
例如:
/ B) T: `. G6 ~ \" d8 i* U j& N8 I2 h( i) ^
<configuration>
3 [' n6 c7 a/ ~& n <system.windows.forms jitDebugging="true" />
7 K* R9 W: C8 q: ?* f</configuration>. c' a* {$ L, o( w) b
! L X" v8 `: v% _# Z启用 JIT 调试后,任何未经处理的异常+ T+ G; q: h6 S& x, u( c% U
都将被发送到在此计算机上注册的 JIT 调试器,
$ `0 m1 S" c0 W' O而不是由此对话框处理。
3 o7 t* J$ O& r4 O
1 M9 h# T7 S* c5 L |
|