|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,& U0 I! r8 i: {& B U! D7 D& ]2 s
请参见此消息的结尾。
" E4 E+ ?8 c( f3 ?# Y- F$ W% v2 n3 ~ B
************** 异常文本 **************
/ ?+ n& T+ ~! c/ m6 w) F# FSystem.NullReferenceException: 未将对象引用设置到对象的实例。: ?9 {! n- B9 \$ r* D* A1 F/ W6 X
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e); N" i2 a/ x H! {6 C/ _
在 System.Windows.Forms.Control.OnClick(EventArgs e)/ P" a1 ?/ A' |
在 System.Windows.Forms.Button.OnClick(EventArgs e)
' b- n! x, n: A+ V( C- d 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)7 n7 @4 B4 y1 f6 R' j6 d; L8 o* R
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)' h" E3 N. L( G( p" V- I
在 System.Windows.Forms.Control.WndProc(Message& m)8 ?- A: e3 p9 J. ]
在 System.Windows.Forms.ButtonBase.WndProc(Message& m) w+ q; N1 c2 R/ J
在 System.Windows.Forms.Button.WndProc(Message& m)
3 W6 h* I3 ?7 N! V 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
; _7 r0 i) E& j. m" r0 v/ ` 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
+ |# m' g' a8 C8 [- F; w2 j" b) G 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
# t% A$ D7 a: i% P' R) s7 H+ @' y) w( ]4 U, f8 o
2 O$ s# \; L5 P9 T8 s$ c* z************** 已加载的程序集 **************
0 z6 f2 E7 ?* r Emscorlib( C9 P8 x& R+ g
程序集版本:4.0.0.0
7 L# l5 z, p f* X Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
& _9 t$ a7 A6 \0 Q$ r 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
1 w& M$ O3 A9 C2 v8 h----------------------------------------0 a7 [# D+ m% ?8 |
Picture_Capture
6 u" V0 t9 C' Z8 s Y 程序集版本:1.0.0.0
' ~7 L, }: J' K Win32 版本:1.0.0.0
( t. u) ^. r: n+ e9 |! F4 Z( n 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe4 d* B2 o A' }/ H0 @% _0 x- u/ P
----------------------------------------
[ [6 d @* t% T5 b' ?Microsoft.VisualBasic
* J }$ I& F. ~: F 程序集版本:10.0.0.0* o) I8 L( ~& ]
Win32 版本:14.6.79.0 built by: NETFXREL2
2 A& e) [8 l+ d7 F! R; S7 R2 w 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
5 {2 ^; U, \" i( `1 y----------------------------------------1 A2 C: V( t4 H* L9 Q6 ~7 Z$ f; ]
System.Windows.Forms
( v% F& u8 C9 h, u4 r' p( w 程序集版本:4.0.0.0, V4 s4 G0 x* w" T7 r
Win32 版本:4.6.79.0 built by: NETFXREL2
& l! K- w- Z) }. ] 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
( `5 W& L% g. c& L0 G0 d% G----------------------------------------) g" {, C B: |$ u
System% B! P' \. m' S3 H& o
程序集版本:4.0.0.00 K" c1 Y: X% \7 T0 N
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE# z1 B' l) `7 L
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll% c+ g* h( F& ?1 y
----------------------------------------
1 Q+ c" Q/ @$ i& R! uSystem.Drawing
0 m a0 }" z& y 程序集版本:4.0.0.0- s, p1 I7 |$ `" l
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE) E8 B. l! h! o, F- p4 }4 y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
- a. U/ M9 R- A, r& f+ z----------------------------------------2 a1 d8 z4 }5 l4 T! S' Z' _
Accessibility
& Z# p$ g0 l/ s8 ^/ |4 U5 ^ 程序集版本:4.0.0.0
" @4 M! L. K0 `5 F* Y- C- [4 O Win32 版本:4.6.79.0 built by: NETFXREL2) B" P- _' q1 [# H; d) S! h
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll: _# {* j# f/ O- Z
----------------------------------------
4 ^8 Q: M! L8 T) x* CSystem.Runtime.Remoting b+ Z& g( o* P* p, ~) G# l
程序集版本:4.0.0.0
1 ^+ @1 E- h5 ^& e' r7 I Win32 版本:4.6.79.0 built by: NETFXREL29 K: D1 [" g/ P6 g: M& }
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll$ L- x0 I! k, A2 ]) @
----------------------------------------1 \. a# F& V2 `9 b
System.Configuration/ P* @% D/ o, j4 e+ k; h) f
程序集版本:4.0.0.0/ l1 ^- u3 X# o W" T: A* s
Win32 版本:4.6.79.0 built by: NETFXREL2! Y- a6 I3 |# y. i& t) m) b
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll* Q$ ~% v1 r) S' b
----------------------------------------: d ~+ Y$ K M# x% i: b8 g
System.Core! ]2 ^& F+ l& s! u1 G& I- w
程序集版本:4.0.0.0( @5 {: U" ~. C' X
Win32 版本:4.6.79.0 built by: NETFXREL2" K1 z1 V% O' D& a9 Z
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll# M9 |" B: u4 m4 u; S& O) m4 N
----------------------------------------7 k* c. W+ s- K' q- M# z
System.Xml6 s+ v6 p7 r+ J* v/ V
程序集版本:4.0.0.0
% r4 B1 }4 Y4 W* B" E Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE4 F1 I, t; i4 B! y+ C/ B/ z# b+ \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
" e6 T& T) _1 g: R0 W0 w----------------------------------------+ d8 F, a( b) J$ R
mscorlib.resources
, b i4 P) B! }# |7 O. J 程序集版本:4.0.0.0+ J: \0 C+ C* r( p! W1 c
Win32 版本:4.6.79.0 built by: NETFXREL2 m' m' t( n& W/ t
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
$ ]' ?% Z* T" e. A----------------------------------------% v; {1 O9 T% `) }8 v% a# H7 r0 m
System.Windows.Forms.resources
I% \6 W+ }2 K2 f S+ u8 P, d9 u 程序集版本:4.0.0.0% E% `. |1 m! Y" Y' A& y
Win32 版本:4.6.79.0 built by: NETFXREL2) a5 C) A6 j! M" O9 S
基本代码: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* u& d# T* M' j! E: ?5 m; a( {
----------------------------------------
( G) e9 r; Y" V, o
) l2 d. ?, t! F7 r2 p3 k6 ~( x2 I: U************** JIT 调试 **************- U( u6 W7 O$ }: q+ }, m
要启用实时(JIT)调试,
7 l* j* e, F3 a; K S2 P Q该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置' l# r7 g! p7 W: F4 }/ C7 p; b# F
jitDebugging 值。- i6 L) R( e9 _# p2 j4 z
编译应用程序时还必须启用
. T* | W3 U8 C& Q/ X调试。
# P4 L8 \: O8 e5 {. e# w
( X: H" A$ @( `" K% X& E例如:4 Y! O( {) _3 k7 G1 U1 p; _
5 V5 [( |" D7 [
<configuration>; f$ n4 q4 S1 M: a1 T& K
<system.windows.forms jitDebugging="true" />% j; l; B' o; ^" l
</configuration>8 A. O( a" w k1 c3 t2 ?
! u& o; Z u3 o2 ?启用 JIT 调试后,任何未经处理的异常
& ^" [1 Z/ T' {. {2 Z& L; {, I都将被发送到在此计算机上注册的 JIT 调试器, V( }& ?1 x m8 h* j; U# g
而不是由此对话框处理。
& w6 g1 D4 r$ g# s7 w' [, d+ I" ~4 E' b. l, y' Q& q3 k8 |* _6 U4 G
|
|