|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,3 L+ Y& z2 i; s: F7 r
请参见此消息的结尾。
) x5 S9 E& W$ \: d" ~; D$ N* K4 o* `( L' `8 l0 T
************** 异常文本 **************
; k6 j1 O( ~1 OSystem.NullReferenceException: 未将对象引用设置到对象的实例。
/ I7 x8 Q; U: k" f2 S 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)' Q# c% Y$ e0 l' v* Z
在 System.Windows.Forms.Control.OnClick(EventArgs e)7 A/ n1 z# B4 P8 w
在 System.Windows.Forms.Button.OnClick(EventArgs e)1 u) ]- s5 i p
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
" P5 w' H6 L9 A 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks): q* n4 S5 m; @. i+ C
在 System.Windows.Forms.Control.WndProc(Message& m)9 m% ^- {# ~$ ?
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
& p9 K/ E$ b% \ 在 System.Windows.Forms.Button.WndProc(Message& m)+ d3 x0 G( m5 |9 F
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
3 I" n& \- y- P& z% }3 Y1 O4 i 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
6 _0 z3 s+ Z. x6 d, Z, [" X8 W 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
* R2 T% W- k4 V3 s& n$ V) [) K; D, [# o# Q5 T" r7 A @
7 e+ N+ U& O" g0 O% _1 Q; t
************** 已加载的程序集 **************# \% |" A, U; [, ?& A' S
mscorlib
$ N7 Y: _) n. A5 E5 I. m) I 程序集版本:4.0.0.0
: s6 q) }6 t' b Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
" N( J% c0 x% I0 u4 Y9 K) [ 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll3 b+ I) s0 W6 a4 J
----------------------------------------* p; P9 f* D# X+ N# ^- C# Y$ |
Picture_Capture
4 q* l4 N! H" `; i) I 程序集版本:1.0.0.0
, \$ T3 }( R, \, V Win32 版本:1.0.0.03 E6 Q, \5 f9 K
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
' Q/ d% Y% t x2 S----------------------------------------
4 E6 M( a3 Z( p IMicrosoft.VisualBasic
( ]( x/ e( n- l% q: i 程序集版本:10.0.0.0
: r5 {/ D! \* W ?! I Win32 版本:14.6.79.0 built by: NETFXREL2
4 B% Y1 d8 {' M# h5 Q8 D9 e F, l" | 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll2 x, i8 {! \8 l V
----------------------------------------1 h: G) [1 b5 R
System.Windows.Forms
0 ]- I, d7 ?, s# I! B# f 程序集版本:4.0.0.0* R' O4 x6 q+ f8 a9 t
Win32 版本:4.6.79.0 built by: NETFXREL2 ?: i, \; u, w) F3 @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
4 D3 u5 w) @% c) M----------------------------------------
- F1 }: F0 P G+ @& O0 {System
1 P( S( V ^( t# m8 R2 ^" m {% _ 程序集版本:4.0.0.0* s$ p% p- O1 K# F
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
% L5 b* W4 j. R! c g 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
& `; N! a3 u: C) l7 l3 ]& \- l----------------------------------------% Q1 A" x: Y1 Q' R, M9 ^& X
System.Drawing
, L0 p7 C) I- {' j& m 程序集版本:4.0.0.0; _2 @; T7 }+ m* D; i0 k& e3 A
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE9 M3 L; Z5 A3 M/ p! Y* \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
( ^7 R' ?; H( j7 `& l& t, ` x----------------------------------------# j7 N5 H+ s$ w0 g* ~. T- q9 I; j
Accessibility2 T% a9 h4 P( h0 m) {& F. r5 ]
程序集版本:4.0.0.04 [7 l3 I/ i) [8 g) y
Win32 版本:4.6.79.0 built by: NETFXREL2
3 ^4 G+ r* s! A" p3 K& T% o( E; f( V 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll& x; R% F$ }" T
----------------------------------------
8 y2 r& U7 f t4 \3 |, HSystem.Runtime.Remoting1 r5 h+ f8 i" L) I' S6 f7 X
程序集版本:4.0.0.0$ @; B F5 `; A' q$ E0 H. x
Win32 版本:4.6.79.0 built by: NETFXREL28 ^- G4 m( W, @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll" S- }( D6 n+ Z/ S! y' r- P- R% ~2 |
----------------------------------------6 g( O! J# W9 R: _
System.Configuration" G2 l. I/ ^9 T* Q3 ]2 X
程序集版本:4.0.0.07 Y3 `( [3 o7 H
Win32 版本:4.6.79.0 built by: NETFXREL2. K1 \7 Z6 O7 V% \5 s
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll7 y' t, h% I* P6 E( Y. g
----------------------------------------
* B& \+ |9 \9 z/ L- ~& Y1 dSystem.Core
; I; v1 Y8 q' @+ K5 { 程序集版本:4.0.0.0
; H, x/ v4 Q( q2 g Win32 版本:4.6.79.0 built by: NETFXREL22 E7 _% i& m5 ^
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll3 E/ |# V: @3 f! E$ S
----------------------------------------0 y% @# {. k6 h3 c' m
System.Xml
' m3 \8 m" _) y: ]: ^ 程序集版本:4.0.0.0% y7 F9 X& A( F i! ~
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
! x* n2 O, e! K9 e' A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
2 [$ r: e* }/ F- e8 e9 Z% t! _----------------------------------------% U. ]! y' b3 s: ^
mscorlib.resources
) i X. s& O- D, |( I; w 程序集版本:4.0.0.0
4 x1 a% c# S/ D% B* i* K Win32 版本:4.6.79.0 built by: NETFXREL2: R" @- W, C( h6 M1 C# v+ i+ P
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll; v, I: T; K1 F, C4 z$ f& H+ x
----------------------------------------% t7 Y4 v" j! \, M
System.Windows.Forms.resources
) _6 w6 N1 r/ L1 F7 m4 u 程序集版本:4.0.0.0; `% A: L# j2 y- w! F
Win32 版本:4.6.79.0 built by: NETFXREL2
- a* W. C# J3 z4 E7 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
( W( n E* `$ @7 h; I+ S----------------------------------------
( |6 \8 S& Y! Y. b3 t& N2 R9 Q
t/ s, ?; h' I% c: n************** JIT 调试 **************0 S* \) w' g, O! g- E
要启用实时(JIT)调试,
& X' o6 U2 ]5 @) k: j9 Q& m该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
1 k ?% }6 }, \. P8 H5 ZjitDebugging 值。4 H9 O: Y( I0 U1 M
编译应用程序时还必须启用
' v t& P; Z4 f# N1 x& R3 ?调试。
# y" D, V1 ]# _+ X- V8 V s
: r( O1 W; |* s例如:, c+ |8 h9 k+ v7 [% G
% B- ]2 `* C/ f" z<configuration>
' m9 H! W* t' A ]) i <system.windows.forms jitDebugging="true" />: {' `% P4 D' I0 D
</configuration>
6 a/ L4 `( d# l* k' e. |; i8 y2 ~/ f- Z) Z) \* i
启用 JIT 调试后,任何未经处理的异常' q* z# H6 s. F- a/ O" C
都将被发送到在此计算机上注册的 JIT 调试器,
5 Q& f+ T7 W8 Y- ]0 ]而不是由此对话框处理。
' G7 \8 G+ i$ X2 [3 y
8 x3 _) J- l3 k' v |
|