|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,9 ~! D& t$ y9 X8 @* k2 M5 O
请参见此消息的结尾。
- X e# Y8 f3 e$ h) P; d- R8 s" u3 O. d- e! R
************** 异常文本 **************
0 r( M6 o3 y& _3 |; cSystem.NullReferenceException: 未将对象引用设置到对象的实例。- ?2 P+ v" z7 _
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
8 x' ^8 h: O* M A5 E( E2 q+ X& C 在 System.Windows.Forms.Control.OnClick(EventArgs e)$ q, G( u3 Z5 t& b% d, L }& A0 {
在 System.Windows.Forms.Button.OnClick(EventArgs e)9 T5 x8 ^9 N) a3 R2 } M
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
. U |$ N6 P+ O7 o; F- U. J 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)- |; e3 y! m r1 `
在 System.Windows.Forms.Control.WndProc(Message& m)/ L7 _* t& C4 A2 h% S
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
( @" ?6 I' n5 L8 T6 a 在 System.Windows.Forms.Button.WndProc(Message& m); A- k+ {7 R1 m# @' R! E
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
' \3 i# ^# `+ b# |! G+ n+ A' U& Z. }. o 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)/ X% K5 w1 ~5 {) t6 Q* u$ Q8 ?
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
( A) ?& H" r3 |2 e
n& ^3 J& p: e* u' h- ?) f8 @ ]! T, P% G
************** 已加载的程序集 **************
" T0 j$ Q3 S& k* ]( u I3 k! E+ Qmscorlib
* ^7 n0 y( h" K( q9 O' b 程序集版本:4.0.0.0% h) O1 `9 V8 H% r4 B4 ]
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
4 _ I8 F L2 O* q% V8 ^ 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
3 z4 c; I/ b+ i----------------------------------------& i4 l; [1 x3 a% B5 a7 [! ?) Q
Picture_Capture
" d/ c8 A+ \& y; s/ n( u* T 程序集版本:1.0.0.0 b+ B2 X. i# N5 K9 i0 @1 t
Win32 版本:1.0.0.0
: S: S7 G/ J+ [' ^2 f, }- c 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
1 @. C% S* z! T" i) w, [" {( ?----------------------------------------0 F9 m; P5 B$ s6 @$ Y5 W7 z9 n6 \
Microsoft.VisualBasic
9 T4 {+ a- Q/ _ 程序集版本:10.0.0.00 A* R, z, b1 D9 @, K; ^% N& I" E
Win32 版本:14.6.79.0 built by: NETFXREL2
8 r$ \5 v; M, V/ g 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll4 I0 V c$ \% E( \+ j
----------------------------------------; |1 W9 s9 \# p$ o" F; ?! S+ F
System.Windows.Forms
3 y0 b3 p f+ X0 V( }7 ~8 a 程序集版本:4.0.0.0
# F @ J. _5 X, C+ l Win32 版本:4.6.79.0 built by: NETFXREL2
& T0 ~- x' v( Z8 H) N9 } 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
' o) T7 x. x! L# e: b2 ?( O' T& m, i----------------------------------------, D4 p7 G6 ^' r; \; }0 {
System
; x7 ~6 m# K. F- w9 a$ h! i 程序集版本:4.0.0.0
7 r% E/ e3 i7 |- L" J7 t0 r$ ~ Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE# Y. \& h# j( E2 Y2 x: Q. B
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
0 M5 p* m9 [# J- p, h----------------------------------------
$ p4 A/ A4 Z" y2 W9 |/ b! `. HSystem.Drawing
( y8 e1 e6 _+ X, u3 A$ \ 程序集版本:4.0.0.0" z4 w, i% t6 A* f% p& V0 r
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
; r: `, t2 ], j0 c6 O 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll6 |2 h0 K4 ?0 Z9 \# r% @0 e
----------------------------------------
% |2 b0 Z8 q* N! r0 h1 z) \+ i9 yAccessibility
4 D. f9 j7 N. W 程序集版本:4.0.0.0
. k7 d7 m7 j% \% X Win32 版本:4.6.79.0 built by: NETFXREL2
6 U" N& R( K( O- O+ K7 N 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
$ L) ~- ?: d7 V2 `----------------------------------------
' P6 {1 g; ] s& K7 mSystem.Runtime.Remoting) i/ [. ]4 _9 i f. ~
程序集版本:4.0.0.0- y+ Q: K$ I I6 T- U* p
Win32 版本:4.6.79.0 built by: NETFXREL29 [ n* e( v0 _: ^" \& e% {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
6 {; D; u) x% Q- y8 u----------------------------------------4 \' u# m- c4 }. i2 ^9 D
System.Configuration1 B7 f6 e; r0 W
程序集版本:4.0.0.0
* [- F% s. y* N9 y. i' p4 v3 M Win32 版本:4.6.79.0 built by: NETFXREL2
E& v) O4 L+ ~" E# o) p5 p8 O 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
9 ~) q) d' t0 e" q3 Z& a* v----------------------------------------% o* P3 Y h! [5 {3 _
System.Core2 D9 m+ C: G0 ?6 K
程序集版本:4.0.0.0
4 P9 r! S% J2 i Win32 版本:4.6.79.0 built by: NETFXREL28 W7 `- P D, A- G! s7 Q$ r
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
) P+ r x! U( m# K3 c----------------------------------------
9 S( L4 w/ L# TSystem.Xml
1 l) E- ?( P6 g 程序集版本:4.0.0.0" C. {& a, x" I2 `- ?
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
( l8 r. x3 w! {* F$ I) {6 ` 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll$ r, E( }2 H7 x! e1 V
----------------------------------------
3 \% e$ ^) _0 C( J0 g. cmscorlib.resources
# E; p; ]0 N5 f& c# v7 x& { 程序集版本:4.0.0.0
' f6 R/ ]6 {9 V) n$ ` Win32 版本:4.6.79.0 built by: NETFXREL28 Q& w+ K! a+ P. u h- S
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
9 v: n* {2 l2 b( I* P----------------------------------------/ Q4 p& d) }) d7 _; ?# K2 @
System.Windows.Forms.resources4 K; V& {0 b* P; D% z) t
程序集版本:4.0.0.0
' V5 ?6 n6 ^9 K% ^. B6 Y9 j G$ l Win32 版本:4.6.79.0 built by: NETFXREL2% h3 a! ^/ V2 J4 ?, m) x/ K
基本代码: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; C. u$ ^" b4 r4 a, ? d
----------------------------------------" S g" v x0 S
/ x! x1 o# y. }* Z6 T0 k
************** JIT 调试 **************
" E$ w% y" Y A/ b要启用实时(JIT)调试,, ?. u; b8 d4 m; B2 E
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
2 p" `2 x5 O! y8 M% i7 NjitDebugging 值。
2 d" \& x+ H+ K% j. E8 D编译应用程序时还必须启用
2 u0 X: a! d( ]- Z) {4 W5 d调试。
2 W3 p$ p8 U; a6 ~9 Y5 C' V
, F, i |0 x& I, I7 ^1 `) l例如:
& Y9 [9 ^: v7 L: w4 r' w5 r( b5 }4 ^
<configuration>
! V) g) k6 n& p5 X <system.windows.forms jitDebugging="true" />$ b4 z1 y6 @2 U+ V- N9 z! L
</configuration>
1 Z) n2 v0 n+ g4 l% m" ] X: `: V% p" h+ [
启用 JIT 调试后,任何未经处理的异常' J3 J( K$ m4 G/ R
都将被发送到在此计算机上注册的 JIT 调试器,
D7 c. }+ S6 `3 }而不是由此对话框处理。7 Z% K7 d C- U4 ?, d9 v
% H1 g5 L. K6 \* }
|
|