|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,7 B" B: b4 X- ~" N5 n/ K9 z/ W6 S9 y
请参见此消息的结尾。# V. b8 h8 v5 U' `5 `
4 r, q" K. o9 W0 x/ R. M
************** 异常文本 **************- @" t% z2 W, l3 Y: V G/ {: P
System.NullReferenceException: 未将对象引用设置到对象的实例。, x6 j+ o$ D0 f" ?% \, C
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
3 R0 c- i6 W; R. u; j9 }! x 在 System.Windows.Forms.Control.OnClick(EventArgs e)
- _5 l+ x" W' X) V& _; r- B& } 在 System.Windows.Forms.Button.OnClick(EventArgs e)# \! Z: K+ n* c* {2 H) n5 ~, t0 W
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
2 b0 F0 @& J0 b/ }- w 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
1 g% O! r5 }$ S! F3 g2 O1 }8 O 在 System.Windows.Forms.Control.WndProc(Message& m)
$ M; F* F) z1 G' h+ F 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)8 M/ a) j# j. e( D# A3 Y# b2 m
在 System.Windows.Forms.Button.WndProc(Message& m)
( d+ S* ^" }7 t: N: N! c+ c5 v' K 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
9 Y1 t8 L9 |) g" T' x- ]. C* F 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m). @8 {2 [ G" Z; D" V1 S/ D, v
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
: ^3 Q G4 X+ C, k1 f( T9 s! A4 T% o9 r$ @: @& f% d
" O) Z& Q& F8 D' e9 p: U }************** 已加载的程序集 **************) o6 A5 p, i6 n N
mscorlib; I4 _7 F1 |0 o/ p6 i# v$ x) ?; x3 d
程序集版本:4.0.0.0# A3 _; B. b3 V3 e5 P/ \ [
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
5 z# m, w8 _ ~ ~- ` j5 X" s 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll7 x3 l% m+ e: f% c& c
----------------------------------------
2 m+ r+ J0 l( z" G7 XPicture_Capture
! W S+ n) V8 i/ T5 Z+ \& Y% U 程序集版本:1.0.0.0
$ F6 ]( p7 ?& T" n0 _; z. } Win32 版本:1.0.0.0
5 ]6 I* \1 p- k0 a& q& {& V 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe. c" ]! @- w+ F8 Z# `
----------------------------------------7 v5 ?: l. _, `1 i7 [* x4 P0 W
Microsoft.VisualBasic
4 n, ~# S( W) i* Q6 X 程序集版本:10.0.0.0
6 {+ A/ O, ^% d" _! C5 e Win32 版本:14.6.79.0 built by: NETFXREL2
- w; r: H5 A+ n2 `$ M 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
* j/ m0 M' b4 T$ q; L----------------------------------------
1 d+ y3 f) o- n& o& B1 Z8 E! E! kSystem.Windows.Forms
9 ?. w \1 K! C6 a0 E7 h 程序集版本:4.0.0.0
$ L7 m0 \- `2 Z* C! b Win32 版本:4.6.79.0 built by: NETFXREL2- m4 u# U/ J2 _/ `1 T% N8 Q5 u
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
2 V$ Y( F5 J2 d+ l- i3 _----------------------------------------* y, r( e0 |/ U9 N# w
System
/ V( S: [: j; E2 ~; ^; A' c 程序集版本:4.0.0.0
1 ?* b* \$ l% `( U Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE9 U) G, q/ |( @- a2 U
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll! C; ^- ~# F0 }
----------------------------------------( {; n! [6 ^" e+ G0 Y8 H6 b
System.Drawing
$ F; ?" s& L5 s" p/ _ 程序集版本:4.0.0.0
. E; W9 S: Y. X4 }3 Z- c Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE7 b+ b$ d& e% C. c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
6 E* I, o* C4 k! ` k& M----------------------------------------; y5 X2 P9 E2 d1 g, Q, l! K" L8 h
Accessibility+ u# S1 K3 D; v; n. s
程序集版本:4.0.0.0
2 @7 l! A1 b+ d& o Win32 版本:4.6.79.0 built by: NETFXREL2
5 Z* |, n. q; D3 q( q0 ~, K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
3 M0 w5 P: p0 }9 [1 L3 d----------------------------------------5 ?0 k" @6 M. x; K9 H5 u7 H
System.Runtime.Remoting
+ e6 x4 r; Y" U) R4 o# p 程序集版本:4.0.0.0
) K/ y; {% s2 y" p5 i4 R0 { X Win32 版本:4.6.79.0 built by: NETFXREL2
) p+ e) [9 u* w7 G6 {, a l5 | 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll* [# I1 J Q. ~
----------------------------------------2 s. R: Q( w7 `
System.Configuration }/ [: s0 G/ c- t( g- d
程序集版本:4.0.0.0
; U. c8 G- O* m2 c7 m Win32 版本:4.6.79.0 built by: NETFXREL2" p* \- `4 p/ G- T
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
* s$ L/ @1 o/ w. K. [2 b, ^( W7 A----------------------------------------. y# d( _7 R5 u
System.Core- M8 s% t2 |/ W3 A8 X- y5 o
程序集版本:4.0.0.0
2 R- s$ U! t* k' @ Win32 版本:4.6.79.0 built by: NETFXREL2
1 z, |, j2 z6 l) x 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
+ h! Q" \8 G2 K----------------------------------------; V" h* d5 ?+ H" G" W* C) v
System.Xml" a, w7 c9 R$ a% x$ [
程序集版本:4.0.0.0; K6 g, l$ h, b( o. e l5 N
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE1 S z' ~4 o# n
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll# O9 C* U+ r5 y% a( S! S% i
----------------------------------------( `' g# K- D6 m% ]/ S; I, A! U; b4 `
mscorlib.resources1 A% \/ y; q; |0 y
程序集版本:4.0.0.0" P2 F+ P; V) E, J! T% l. m
Win32 版本:4.6.79.0 built by: NETFXREL2; W" |4 k; E7 m$ K4 i/ S
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
- ^4 Y: Y9 C: W. o+ B. F# [: O----------------------------------------
6 @0 x2 i6 P4 o* ?) x# c& WSystem.Windows.Forms.resources+ H/ M6 U6 d( e6 o N5 `8 Y
程序集版本:4.0.0.0
2 ~8 n& i. ~9 c1 w6 Z Win32 版本:4.6.79.0 built by: NETFXREL2
- H! m r! M; _* T1 e 基本代码: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
& |! {1 o$ T, T* l----------------------------------------1 l( \; d# q+ U, B; E( v6 @ \6 q' \
7 v; x! u* ?+ ~7 y* |2 F6 `% D# m************** JIT 调试 **************6 a% ^5 S( \. w5 B* A( A
要启用实时(JIT)调试,
" p0 o" z# G! ?; O该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
0 d9 d) p- c% j2 t, I3 F, y2 tjitDebugging 值。
: l2 j, k0 a, | L* |; f" ~3 U编译应用程序时还必须启用
C. ], R. z2 M+ `* y3 M调试。) H2 S9 i4 T6 }
! ?: ^. D* t. X' b5 i$ Z5 @5 z E0 l
例如:* k' I* G s, E. S, ?5 h0 e% V
% ?9 s, W2 p+ k( u) B4 ]<configuration>) p0 C9 t, [" E& {& X1 K$ X" `7 @
<system.windows.forms jitDebugging="true" />
. K/ {" d# X6 C5 U' _</configuration># L% w9 Z4 ~, i* X) C8 u
: Q& j8 a i+ y D7 \
启用 JIT 调试后,任何未经处理的异常
" M' t/ G6 ?$ L5 X' a4 \4 f都将被发送到在此计算机上注册的 JIT 调试器,
' M8 T$ h& J/ s- z; j6 m而不是由此对话框处理。
. U4 R2 z- a( G+ E- N' E0 t6 Y. {0 b6 w) l! _/ e2 U
|
|