|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
6 }% M( g, Q; V0 s请参见此消息的结尾。) |1 q0 v$ R/ `' z; |9 C
) Z) R* e( ]1 D/ |************** 异常文本 **************
" ]4 r% Y' d$ V" zSystem.NullReferenceException: 未将对象引用设置到对象的实例。* c* R9 x: c6 f Q
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
. N4 L6 g+ F1 S+ O 在 System.Windows.Forms.Control.OnClick(EventArgs e)! f R$ X W! @* g0 \' _( {# s
在 System.Windows.Forms.Button.OnClick(EventArgs e)
7 U" z/ B: a& F4 Z2 x' O2 b, ^ 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
" ~' F" u3 T( O) _2 b f" x ? 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
/ l; V/ {* K7 ?5 i 在 System.Windows.Forms.Control.WndProc(Message& m)
: R! J! y$ Z) T- a$ }: W: e& {. ` 在 System.Windows.Forms.ButtonBase.WndProc(Message& m). C% ]' g) l' n8 z) Q
在 System.Windows.Forms.Button.WndProc(Message& m)
6 b( ^9 F' w# p( L7 f2 l* I 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
, x. }& P/ N8 I9 X& }0 o1 \ 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)2 r' M' |1 S# O+ {( G! B
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
( q$ b6 \" u; H: t$ a0 G3 v3 Y/ O4 |+ |5 d7 _2 Q
" }8 o# L: ?& e' C( g9 \' P
************** 已加载的程序集 **************9 P3 h$ p/ P: r" W0 J" K& }* N
mscorlib$ p3 [* w- N0 C2 D5 |9 r- \0 W
程序集版本:4.0.0.09 a8 a( m5 l+ R9 i4 w# d5 K' a$ }) J
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE6 X! I" Q4 {' T4 h4 F( ]
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
$ a. U" }" H) x2 D, y5 Q: n* ]0 q----------------------------------------
c5 S: M, N4 ?3 d* IPicture_Capture4 q5 l7 @2 [: R: [4 {4 j7 G6 m
程序集版本:1.0.0.0
+ z5 W c8 j" @/ t Win32 版本:1.0.0.0
- c7 b5 c I- ~, S) K5 [4 ]8 [" @ 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe8 W z/ w. H. Q; V+ w1 @
----------------------------------------* {* k6 D& P X- F! h
Microsoft.VisualBasic
# J& ^* j6 `$ x! K, T) D 程序集版本:10.0.0.02 J# k: K$ `5 U9 ]& I2 T; e; u0 G
Win32 版本:14.6.79.0 built by: NETFXREL2* T" X# i% I* N$ d7 ]- Q6 {4 O
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll5 g0 `4 Q6 K5 }5 m' z0 c
----------------------------------------
7 ^; z7 c/ g+ xSystem.Windows.Forms
" B3 a* x$ l- ~5 n( L 程序集版本:4.0.0.0/ t5 ]- M, F! `& x1 `* |5 }
Win32 版本:4.6.79.0 built by: NETFXREL2
, Q" U7 x, d$ ?7 p 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll& a3 M0 i+ r, W0 H# S
----------------------------------------
! M* h0 o+ c4 Y% _7 b5 vSystem; R1 ~5 z+ w) C0 t$ e
程序集版本:4.0.0.0
! V3 R" A! S; F) ?% u G Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
% ^0 q6 R5 b% ]. x' a 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll D; T9 A% H ]) Y, _
----------------------------------------
! E3 ~& o# X/ o. N9 e2 c8 {& X9 lSystem.Drawing& t# x" e1 P4 `) A
程序集版本:4.0.0.06 w8 Z% b& c( r& m8 N; z
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
/ E+ z8 l% r4 M6 p5 @ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll8 R# I- z8 x8 ~6 X4 k0 R. N3 k
----------------------------------------
3 x' M/ j" P, [0 j/ NAccessibility
. f7 c4 W- Q/ G k, b/ q9 |3 W 程序集版本:4.0.0.0
/ z- D- t0 O7 ] Win32 版本:4.6.79.0 built by: NETFXREL2, v8 [/ A3 s7 M& [6 x) U; V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll( R* O- _$ I L+ F. j1 q0 w
----------------------------------------. j$ z1 |% d; ]! K+ n
System.Runtime.Remoting
; C% v. I" T+ W6 t6 y& S* j9 o z 程序集版本:4.0.0.08 Y( L9 {9 h. p; P0 ?/ D0 r
Win32 版本:4.6.79.0 built by: NETFXREL2- o! W) k1 E. b8 A" e* Q! a
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll! s1 H3 `8 d% m
----------------------------------------3 Q. R# z& B4 e" W
System.Configuration2 g( W" K/ f+ u% K. B& d4 ]
程序集版本:4.0.0.09 ^/ O8 X U0 {1 @
Win32 版本:4.6.79.0 built by: NETFXREL2
8 Q. R& e& p) R" {0 K' G 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
2 {: }) g" r5 U, F----------------------------------------( P3 m& F. U4 W d
System.Core* h1 k' k: {: K" o, I( O
程序集版本:4.0.0.00 y. l2 Z1 S6 t# _! _
Win32 版本:4.6.79.0 built by: NETFXREL26 Q& W" s: r% P, S
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
1 y" m5 u0 q# K9 b( O7 E----------------------------------------0 F- p8 K1 k0 X1 U
System.Xml
' j2 L1 n" A7 @) y 程序集版本:4.0.0.0. M1 z K O$ }3 G. O6 g, T
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE" n( i/ Z4 S9 V9 U
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll+ D) y/ ]! Q ]5 E3 v7 u( t
----------------------------------------
! Z; f+ ^$ f% _7 }8 \mscorlib.resources
1 H |- C) z+ X1 S' N% a 程序集版本:4.0.0.0
' d8 @2 F) S* Y( Y+ C2 ? Win32 版本:4.6.79.0 built by: NETFXREL2$ m; @, X$ T5 w+ z
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
3 L7 }9 w+ _( `/ R# _* ^----------------------------------------0 K/ ^* S) K8 I
System.Windows.Forms.resources
1 t# `2 A. a$ S 程序集版本:4.0.0.0, \7 l6 O8 X2 s8 @2 ?7 {
Win32 版本:4.6.79.0 built by: NETFXREL2
/ e6 n+ z+ @% g K/ H- e5 { 基本代码: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$ Z( H* T6 k6 n2 k
----------------------------------------
8 b" U; Y' J! z/ J6 E2 c" D2 r6 ~5 E8 m( x( `) ]& V
************** JIT 调试 *************** L r! m3 T* V( c/ y
要启用实时(JIT)调试,7 s( i: U( {1 M @
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置0 S5 T2 y2 P: e1 |. B
jitDebugging 值。6 E7 P; x/ g* u0 q
编译应用程序时还必须启用
0 _2 |% C8 L, {, z- f调试。% r1 w1 p2 H& i3 I* r
7 C; R: a& j) h- P例如:( E5 j4 W: B, H
r" p' e; d0 A: u) f2 z
<configuration>
+ s9 X& e/ p8 g. Q% N7 z <system.windows.forms jitDebugging="true" />
1 R+ W3 y3 G. N1 @3 W9 V</configuration>8 T2 _) `# j+ `* ^5 e
" V0 L$ {5 d. f* D- b
启用 JIT 调试后,任何未经处理的异常4 f8 r" ]! |3 C( M0 [
都将被发送到在此计算机上注册的 JIT 调试器,$ X/ o z2 a) s' V+ @
而不是由此对话框处理。) `) h& [+ k, n+ M, U
9 D5 Z. N, i$ k
|
|