|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
! D( n9 ~: { Z5 f请参见此消息的结尾。
% n( S# n* g6 C( H
1 t4 u% T+ K8 f! {. T************** 异常文本 **************; D: W) N; X5 L
System.NullReferenceException: 未将对象引用设置到对象的实例。/ P4 h0 R5 O$ h4 T, a
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)* `! h2 F9 A2 X) A
在 System.Windows.Forms.Control.OnClick(EventArgs e)
( T6 t( o! h" M' e8 L4 w+ x 在 System.Windows.Forms.Button.OnClick(EventArgs e)5 g2 T4 Q0 g0 G$ c5 n0 p0 m* G* `
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent): ^( @' \! O$ {0 Q
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
7 q- N' B4 g q2 d) b* } 在 System.Windows.Forms.Control.WndProc(Message& m)% {! s, D; `6 S1 X
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
! p. J; C- _& h9 M3 |( e2 Q4 z. K 在 System.Windows.Forms.Button.WndProc(Message& m): Y, p% M2 ^/ v" B2 ?& n3 ^/ P
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
5 X8 h( `& I. v9 P7 I 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
. z1 L, E9 c1 D! }# H 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)" y" H: b; `! M8 I
7 V+ K9 J, P9 I2 g; O
& {: p/ E. Y/ C. X) Z' o" |1 \* h6 a
************** 已加载的程序集 **************% N: \4 k {( v# O/ w- |3 g
mscorlib
) K& b; I4 E/ v6 v 程序集版本:4.0.0.06 U8 h! |) J5 F' E$ ]
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
& E" @0 ?1 Z. k' J, y 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll/ `: @7 U0 e# [6 M# c3 I
----------------------------------------
* J i9 i% {, ?' Z' z6 @Picture_Capture4 U* X2 s; n; g' m
程序集版本:1.0.0.0' E1 p/ f) X$ D3 a
Win32 版本:1.0.0.0; s; ^! o/ t/ K$ c
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
8 O1 o/ }% K9 d7 u: A----------------------------------------' k' J7 d' D+ l* N
Microsoft.VisualBasic: T7 }3 o* x2 z3 _; |- o
程序集版本:10.0.0.0" \* h7 y# ^+ g, A! X
Win32 版本:14.6.79.0 built by: NETFXREL26 W4 o* T5 ~" d0 j
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
. d! X# C8 s g5 t' U8 j+ L0 X----------------------------------------
2 B, ]+ }, ?& f+ J" iSystem.Windows.Forms# s0 h/ G# t* Q" r/ w) A$ I( E: {7 R
程序集版本:4.0.0.0
, M( y" h, g: q0 ]! O+ A; {2 k$ _" G Win32 版本:4.6.79.0 built by: NETFXREL2, @/ `2 f! }6 A6 n, z
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
" J: s) u& c+ B R----------------------------------------
# d! H2 j' Q3 R) h9 zSystem
; Z3 W5 M: f3 F% |) U 程序集版本:4.0.0.0
& {% ]- p% h6 [1 J8 w% Y8 a Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE! u# S0 l; w6 M9 c% O3 f8 m
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll( U) o! O# N4 |+ A
----------------------------------------
3 U q1 j) \/ t. `$ `System.Drawing/ \$ ~! {/ f* o% h: w- k. u% l" V
程序集版本:4.0.0.0
3 g4 m- \4 |# d9 U& U: n Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE9 _7 @& Q% r4 D" T2 M
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll6 G+ r! } k6 T6 ^ {
----------------------------------------
% Y6 G# F* m& b" }1 I; MAccessibility3 I1 [3 A7 t* b
程序集版本:4.0.0.0; W: L; G0 z& X" Q
Win32 版本:4.6.79.0 built by: NETFXREL2
" k: O# L3 }/ a+ G+ I$ d 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
, o; }9 T8 @; u$ B P0 a----------------------------------------
" c% Q+ B% o0 Q4 a* dSystem.Runtime.Remoting
' ^0 s" B' E* t3 a3 o 程序集版本:4.0.0.03 L* S* `4 ?( e/ S9 E- `
Win32 版本:4.6.79.0 built by: NETFXREL2. L/ t$ a7 W, O, Y9 _4 S
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
6 W, j2 n! S% |# g& W----------------------------------------, m" @) {3 ?9 {1 P
System.Configuration
8 m, T$ w8 ]6 R3 p5 a6 b8 ] 程序集版本:4.0.0.0
4 Y' n4 ]! I# I r9 b9 B- [ Win32 版本:4.6.79.0 built by: NETFXREL2. t7 K/ L$ W5 W! E. G; k! |
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" E7 U: }4 I) ] p3 U7 E. o
----------------------------------------
' y, z# @; M t6 n a! MSystem.Core
( }" L9 z% q/ E$ y V' | 程序集版本:4.0.0.0' T% z( k Y9 G( x) y/ W
Win32 版本:4.6.79.0 built by: NETFXREL2
) S& S8 Y" M9 m+ N& p* I5 [& \ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll5 S8 F* v, Y/ b, O
----------------------------------------' Y; H' M+ v H* ]% ?% O9 x/ O) p
System.Xml
; R( t5 R# [' O. |1 X7 ?3 } 程序集版本:4.0.0.0
) }6 u. e3 g; s* h' o- z" {' z Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
( j* Y% A8 Y, s# ^$ ~1 O1 n: Y/ P 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
) H5 s9 g9 O( Y1 F; p# Z) } j----------------------------------------/ l; @7 ~7 i* v c4 B; r
mscorlib.resources3 v6 @5 P4 [: ~# K8 K
程序集版本:4.0.0.0
2 |8 k( L! d& @* m+ b Win32 版本:4.6.79.0 built by: NETFXREL27 X2 J k# g, [% f
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
8 ^6 t7 q, [' f' G----------------------------------------0 f8 U( ^( T) S7 W! R# z
System.Windows.Forms.resources- ]& u: a; @% ?# X: v
程序集版本:4.0.0.0. f U* \/ P4 z4 P# x
Win32 版本:4.6.79.0 built by: NETFXREL23 \! q3 o3 Z- K: @7 W8 k' g: t
基本代码: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+ \9 D! F$ I$ y- G- `# ~
----------------------------------------
6 L. V8 Z! Z9 z+ R% @- i2 p/ D5 n) X3 O) R& q5 C0 z
************** JIT 调试 **************5 K# y/ y9 L& z6 L' i+ U1 z( L
要启用实时(JIT)调试,( r/ `" s$ P/ ]2 s2 \
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
" D! q. m9 V$ d- x( p& Q- h, njitDebugging 值。
. y$ [# I1 t/ C编译应用程序时还必须启用
! Q. |1 ?( R4 ?( W3 ?3 \调试。5 r# M: m% m. r# w
, Z8 N5 I2 T) f) p/ o7 F, ]
例如:
9 z; ?2 g! J) ^3 x* f1 M
B; a! Y. C$ V' a" P<configuration>( P6 i% J4 h2 V3 V
<system.windows.forms jitDebugging="true" /> n- |" Q$ ]- g z8 M; X7 o' O
</configuration>
8 m+ C5 T; Q- s4 g) d6 J$ f- z% Q0 e1 C
启用 JIT 调试后,任何未经处理的异常& a' j' s! u! G6 e4 f) @# [9 `9 H+ J
都将被发送到在此计算机上注册的 JIT 调试器,; O# m" f4 @8 {, i0 r* v; T
而不是由此对话框处理。" I, U4 n# T( t' I: k( {5 d
1 ~& m& D; g" N" I4 V( S5 S
|
|