|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
8 [) X5 t& O" {3 R" A% Q请参见此消息的结尾。
2 d6 k/ u3 u8 U0 g* ^& z. q7 j" b( x, ]" B y8 \
************** 异常文本 **************
; r( S) X" b$ z# w7 A, x2 MSystem.NullReferenceException: 未将对象引用设置到对象的实例。$ y& U) j# A2 ~3 U
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e). J1 N6 _+ n! D# m# T& g& U6 j
在 System.Windows.Forms.Control.OnClick(EventArgs e): y9 n/ U9 o3 Z5 t7 M+ h
在 System.Windows.Forms.Button.OnClick(EventArgs e): v. b. C l6 ?9 K2 ^& Z
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)# R$ v0 ]$ j- \' C! n+ ^% I( T
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
) |, V+ R7 C! j6 X6 X6 ^ 在 System.Windows.Forms.Control.WndProc(Message& m)
! ?* ?; _( w$ V 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
8 x; q2 c; l3 a/ j! Y 在 System.Windows.Forms.Button.WndProc(Message& m)
; {- e% B/ C" x y 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)! Y9 @: h N/ J' f$ [( U b; K
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)0 v @6 @$ M5 j7 W$ L0 v7 A
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)8 d7 W+ q8 c `" \- t# w4 _! ~3 j
6 y1 G0 @ v. @: Z$ k
6 }# K$ H9 N/ S( D( x8 S7 w
************** 已加载的程序集 **************7 f L7 J( S {8 m. i& y2 e5 k
mscorlib8 }' S N/ m' [) G* _2 f1 a
程序集版本:4.0.0.02 \( H/ l, m1 l# \
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE" m1 i5 R' B: y
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
% @5 p+ x# y4 r- Q8 Z6 d: a3 ~----------------------------------------2 o8 X3 A i n; F8 {* B3 a4 @
Picture_Capture5 I$ p' k7 {, G+ K
程序集版本:1.0.0.0
! {1 t1 k$ v1 o Win32 版本:1.0.0.0
3 Z. w/ T2 f2 J. j& l" J 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe* u9 R% n$ J+ z- O
----------------------------------------. L. s9 Z* C( M) B
Microsoft.VisualBasic
z" ?: E+ w; T9 v 程序集版本:10.0.0.0. r3 e G9 L: ~; x9 q5 N4 F2 m
Win32 版本:14.6.79.0 built by: NETFXREL28 a8 v0 [2 Q% c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll3 V" g3 P/ N3 {) [5 P
----------------------------------------
- Z& l& |+ c% j: p1 |1 xSystem.Windows.Forms
% o3 C+ s' S& e0 Z4 S. g 程序集版本:4.0.0.0/ z5 U: K4 r z* L
Win32 版本:4.6.79.0 built by: NETFXREL2$ Z8 T- R( m! M; g9 W
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll, [9 u$ I5 S% A `4 [0 C% S
----------------------------------------
* j7 g; S8 r" z( CSystem
. i9 s7 Z' r& G! s8 U3 {% g 程序集版本:4.0.0.0+ y' I8 R0 ~0 ?" ]
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
( `5 V* z0 [. I/ L 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
7 C" H8 X# Z6 o8 e9 y) t$ I% l----------------------------------------$ g( z! ^5 ?$ b) t- ^! {! }) n
System.Drawing
5 K) M3 l% f+ ]4 d) D `2 C1 D5 j& D 程序集版本:4.0.0.0
: Z) u: r# g7 Q! ^ Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE0 o2 A7 ~0 q$ w3 r2 _* T) l% K8 N
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
9 d1 _: L3 l. {* Q9 f; m----------------------------------------# v. S" i/ K( k/ n
Accessibility
" ]5 Y5 Y$ U. n9 d6 f. M6 ` 程序集版本:4.0.0.03 G1 t# q7 t' Y5 D9 Q" L
Win32 版本:4.6.79.0 built by: NETFXREL2$ |! N* h/ o% r @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
) O1 y+ V& T5 P' q5 J5 e----------------------------------------! [+ S5 |: Y, F# T* j0 ~
System.Runtime.Remoting* P2 j3 W; w: ~0 A" ~5 ^
程序集版本:4.0.0.0; I: ?' y! s; m3 U5 {0 h
Win32 版本:4.6.79.0 built by: NETFXREL2
* s, L, P+ A" J, A! o6 T 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
$ n/ V8 b; F+ w. |----------------------------------------% u2 k& [) i. X- }1 C' _8 g
System.Configuration6 ~ G' Q7 ^2 Q2 v7 m- U
程序集版本:4.0.0.04 g3 p ^/ C* o9 T) _2 a& g$ Y
Win32 版本:4.6.79.0 built by: NETFXREL2
) V0 R( F, H' y4 _; S: U5 s8 l 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll- V# W% L% {' D5 h4 `( J# s6 Y) [, Q
----------------------------------------
" ~$ u; d3 `, u, oSystem.Core4 G+ _) S. A# w2 h0 ^
程序集版本:4.0.0.04 ?( n5 x2 F7 H( ~$ k; a/ j& v
Win32 版本:4.6.79.0 built by: NETFXREL2
3 J$ N# L1 _! p y- M 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
9 b5 X2 _# A# F# _1 {7 L----------------------------------------4 w! [1 J S& ?, g9 p# ]
System.Xml# u6 C3 n5 t# U6 E# g
程序集版本:4.0.0.0
9 a6 S/ q8 }& k; o; |" ~# J Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE9 M! |) k9 w& ~
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
5 c8 K; G6 G7 F* X5 f4 }----------------------------------------$ K# f. G- u M5 w+ Z6 ~ q* y
mscorlib.resources- a: h d! d6 k2 @
程序集版本:4.0.0.0" t* ~# l4 P2 ~: H) Z1 d
Win32 版本:4.6.79.0 built by: NETFXREL2* j- }, j/ N* F- D
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
) v2 V. ~) |. Q0 D----------------------------------------% ^5 A1 m4 y. q; E8 w9 F4 d. f2 `! D
System.Windows.Forms.resources
% `7 t9 S3 l2 V8 ^( R 程序集版本:4.0.0.06 W; w" M2 Y' o- Z4 J* X
Win32 版本:4.6.79.0 built by: NETFXREL2/ I5 {9 G( @2 h5 \0 m0 n$ u1 f% \
基本代码: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# |" ` q1 J9 q5 Q" |3 ?
----------------------------------------
) [4 K' n, F; u6 s. _
! X5 W6 M W$ E2 z% N6 h0 ?3 @1 @. v************** JIT 调试 **************" y% A. w2 I Q. W# {. }
要启用实时(JIT)调试,% p7 W8 e, d+ c: [* Z
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
/ {" L3 H% x5 pjitDebugging 值。$ S4 T( i9 S8 Z& D
编译应用程序时还必须启用% X2 W" V* i2 r
调试。1 h; v; H1 @& Q$ E$ S
3 w/ B2 Y" f2 B2 s4 L, a5 w/ b
例如:1 |4 z* C5 A$ |
; g1 V2 X6 L5 e, w9 A: P% e
<configuration>& x. j8 y' \+ K' W( L+ `. ]
<system.windows.forms jitDebugging="true" />2 H7 G0 [, w c+ b5 p
</configuration>
, S+ d8 d/ Q# s# b& z
) M4 a7 x; ?' O% r启用 JIT 调试后,任何未经处理的异常
" w5 x: v3 U% l1 Y* @4 U都将被发送到在此计算机上注册的 JIT 调试器,
( X2 h: E E! L" \! W而不是由此对话框处理。
) O7 Z( F) R% g* N1 A, f
2 t9 i( @6 i3 s# M4 q |
|