|
|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
/ y+ I& I6 V0 Y3 M请参见此消息的结尾。
7 N8 C1 I( a" m) Q7 P9 x% }
7 p! o$ j. D$ @3 U/ T' D************** 异常文本 **************
- C* M$ B# s# b7 k% ESystem.NullReferenceException: 未将对象引用设置到对象的实例。
) r+ y7 O3 g* R 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
0 e, g9 L8 j3 F. ~0 S: \/ \ 在 System.Windows.Forms.Control.OnClick(EventArgs e)
) e# ]- y' L& f; {* J6 Q7 n; v) K' m6 S 在 System.Windows.Forms.Button.OnClick(EventArgs e)5 W, B' G2 ~0 S0 W* W
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent); t# {3 D& N: S% H! `/ l
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
0 S' {% Y2 m5 _% O 在 System.Windows.Forms.Control.WndProc(Message& m). r0 F$ m8 ?: X6 w" a" Y& S
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
2 I5 x6 ~. H8 ^8 l- X 在 System.Windows.Forms.Button.WndProc(Message& m)
' K: I k0 z+ ] 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
, h3 R8 |% R, O2 H" a1 T6 C& Q: @9 } 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
, B8 o9 `1 M5 H. H 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
* O* a+ k8 }$ T6 ]+ c) x& Y+ Q
`: s5 O2 j% Z- f
- I4 ^1 p* n5 k4 k************** 已加载的程序集 **************
9 y, c9 b" |) R8 fmscorlib9 @$ B/ q' t, n3 v/ k
程序集版本:4.0.0.05 r$ \% P1 T! r# R( X$ T+ _) n
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
# R+ p! d" H1 a5 A4 p 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll, a; I1 a1 V6 `3 X+ {5 {8 r
----------------------------------------
! C+ F2 X( v: O& q7 ?" wPicture_Capture& W# P* J2 w3 b- u, K* d
程序集版本:1.0.0.0
2 K) v5 t5 X, `# h; u& G Win32 版本:1.0.0.0
1 g7 B. m4 B1 f: \, x 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
8 l( L# F, o; ]" D3 X- R----------------------------------------* {" ?' F- Q8 |: o+ ~
Microsoft.VisualBasic* M( H3 c. s+ A* z2 V
程序集版本:10.0.0.00 w2 h. Z! D8 n) ^+ ^2 z
Win32 版本:14.6.79.0 built by: NETFXREL29 I5 |/ J3 o" C* |3 q" [
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll( _" J& z1 Q8 t
----------------------------------------; t8 ~ s( \5 r: Z$ N8 `9 t
System.Windows.Forms
- N$ C. G' k, ^! T0 l3 ^( ]4 U 程序集版本:4.0.0.0. S7 x! @ [" u0 q% V8 r. Q
Win32 版本:4.6.79.0 built by: NETFXREL2
1 L& ^5 r: z* T( G 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
7 d6 X3 a( P! N2 D& k% _, [- S----------------------------------------
5 }! V: f. w, U: @2 D0 r' ? TSystem1 J2 e# j# B6 N6 y, b
程序集版本:4.0.0.0
' L5 z, d# B/ g/ ^( [ Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE& N" g, u8 V; V- i. C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
* }6 L& K0 ^4 }( w7 m- Z3 U1 |$ j----------------------------------------
! C9 C2 e2 W1 h, C( }- vSystem.Drawing8 ~' ]! R7 r! p$ \' s. J
程序集版本:4.0.0.0
; R/ q9 V. I8 S' W Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
& b- [2 E1 f# D( V" Z# r2 o7 O# L 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
9 o$ S4 z1 m7 ^2 S9 [: D# P----------------------------------------+ Q/ x1 E$ E; t2 g# Y6 w4 v$ O1 I
Accessibility
: q) R+ C8 F9 r% C; A( T9 H 程序集版本:4.0.0.0* l- A0 R8 N( w, \
Win32 版本:4.6.79.0 built by: NETFXREL2
/ o" }; s M3 }1 V0 G 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll. l/ W$ Q% G* g( l! A
----------------------------------------
) X+ Z: t6 M, W' zSystem.Runtime.Remoting
5 u$ X* N3 Z" r7 [, w 程序集版本:4.0.0.04 e6 q$ u: A- p2 i! h- ?- [- T& I0 z
Win32 版本:4.6.79.0 built by: NETFXREL2
1 H$ l( }4 N R$ z* S1 q- r 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll* d$ B- p" R$ A- |, h; }( _
----------------------------------------
5 e3 D9 E! l3 s; b+ v: ySystem.Configuration. x1 r( Z& M4 Y9 y
程序集版本:4.0.0.0
5 k" a. f3 |5 B( ?: W( u2 j Win32 版本:4.6.79.0 built by: NETFXREL2
3 f* X* L8 W# i 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
$ h& X H6 U$ w----------------------------------------
) @" Y/ A+ n" d( m4 d6 qSystem.Core
" o2 k/ f: G4 X( D% M* v 程序集版本:4.0.0.0; x* A/ }# @. u: H, V# A) _
Win32 版本:4.6.79.0 built by: NETFXREL2 u/ }2 T( L% B; ~" L* A
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
: z& Z6 z k t/ {7 T! W----------------------------------------3 ]" ?: B: @% Q5 K* W0 V' }
System.Xml
* K6 f( i" o2 d 程序集版本:4.0.0.0) b# @& S- o3 a3 j7 J8 h( F
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
; `5 ?- Q. g* M* a1 W+ a 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll$ e: E- T5 h" B5 K
----------------------------------------
& Q# ~6 S2 h4 Rmscorlib.resources
; u6 |) `( j# h% J( v' T6 _) v7 } 程序集版本:4.0.0.0" z- v/ @* {, n7 M7 ~8 V6 j
Win32 版本:4.6.79.0 built by: NETFXREL2
5 ~( o/ E8 I) g7 z+ K8 w* e 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll9 t. A3 u* h3 \9 |* J% e! I8 D
----------------------------------------9 ^$ \& _: \( V. J T9 w
System.Windows.Forms.resources
, k/ v- J* J7 W9 t8 e. O5 s- E 程序集版本:4.0.0.0" y, [, I* P! g4 V) F/ ]( c6 @
Win32 版本:4.6.79.0 built by: NETFXREL2
/ M- l: e, D; p! a* t/ b 基本代码: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
& @! P' }, w5 W----------------------------------------
- y- f! w0 f+ d H$ d) s' d" a5 U3 y0 j
************** JIT 调试 **************) } O2 K7 @* g% b" E& s3 ]
要启用实时(JIT)调试,
$ g1 s! s- |* w3 a8 _4 v该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
, K8 j% q h, \* F* wjitDebugging 值。- ?, R. f/ e3 ^) d
编译应用程序时还必须启用& D: `! [' `! {5 j# e
调试。
3 D: N9 o# _8 n1 N: R+ s
( ~+ w: @, m2 X- c- a2 T! Y例如:
& U: k6 P2 { |& k
1 v u3 O- Q: ~<configuration>
3 j) ?( y+ x) |+ f9 E <system.windows.forms jitDebugging="true" />" g, y9 ] m1 ~2 L
</configuration>
4 C; W8 z. i6 R. G4 } |
" ~7 w6 c0 F( s# V4 T4 k启用 JIT 调试后,任何未经处理的异常
# B7 r' K+ V! H" W0 L+ q9 K都将被发送到在此计算机上注册的 JIT 调试器,
1 V# w3 n7 z, c而不是由此对话框处理。% @/ n' w+ `2 l9 ^5 P s1 o* m5 Z
# X- K1 C8 f9 }2 ]' j |
|