|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
4 u9 z$ u: J" m6 \7 o请参见此消息的结尾。& D) O* n2 d+ y0 p" l. E4 [6 r! y
/ A* e2 {4 |) M/ e2 d6 ?' F************** 异常文本 **************8 p3 E. Z# V9 { A |7 {# F. i
System.NullReferenceException: 未将对象引用设置到对象的实例。6 V5 F3 U9 W2 C9 \
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)7 T, i4 Q4 l3 B: X$ t1 C
在 System.Windows.Forms.Control.OnClick(EventArgs e)
Z7 Q0 { E1 `9 ~/ K) W 在 System.Windows.Forms.Button.OnClick(EventArgs e)1 |' l7 R, y: m E' v* L$ w
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)2 W% y" ^! j6 M7 _, d
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)& [7 r! o% ]- k
在 System.Windows.Forms.Control.WndProc(Message& m)' _. P" d; r7 Z) |+ }/ [
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
. \2 }, a: B* Q0 B 在 System.Windows.Forms.Button.WndProc(Message& m)
+ H& Q' W7 N9 y; I( {, f( l9 c* U 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
; i1 a% A- A5 h! Y, t6 O0 E 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
6 r. q" f7 K7 o6 n# o5 x4 s- _: s 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
" l+ L+ s2 C8 O3 z
5 P* |( o, w) Q1 @# z- A' K, L3 Y: i* Z7 {+ ^; Y
************** 已加载的程序集 ************** g9 f, c! \: D7 q6 Q
mscorlib7 m& c. J6 E/ q" j3 Y( \1 L4 V
程序集版本:4.0.0.05 Y- s) b) J. }0 T$ w0 L1 f- L
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
8 T: t# B) j( P/ W5 [8 F 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
; h) D5 H/ N- V5 ~. C G----------------------------------------2 t6 o( t# h, A! W2 w5 k' I
Picture_Capture
6 e# @2 l: Y: l% n; k 程序集版本:1.0.0.0( F9 ]( i6 R6 @5 ~. A/ f7 ]3 B
Win32 版本:1.0.0.06 q' ]' K! ?2 _1 X8 T6 j5 J
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe5 g. U [- H7 v8 N: }! M
----------------------------------------# C7 S! Q- k8 [+ T7 P2 Z7 B4 g, H
Microsoft.VisualBasic/ d9 Z4 T, A( U
程序集版本:10.0.0.0
- T) B8 b3 v9 H( d. _- V8 j) c Win32 版本:14.6.79.0 built by: NETFXREL2# `* g5 H* p% c& ~! g
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
6 O$ `! l% t- ]----------------------------------------1 c( E8 A* I7 L3 O, I8 `( E
System.Windows.Forms3 x2 ?% f2 A+ }4 I) F+ D+ \& t
程序集版本:4.0.0.0
& b, e: \; q, M Win32 版本:4.6.79.0 built by: NETFXREL2) ]4 t" f: B! n& H/ b. a
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll1 T! j% A( i( D7 {
----------------------------------------
5 y D p+ P# q8 \/ l" h$ _8 YSystem
- i- }6 B0 B/ r 程序集版本:4.0.0.0
h% M6 m' m) E) H5 P( V Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE3 Q# O2 p6 T" S6 T
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
& L/ V9 t/ Z/ _6 T; ~' K) B----------------------------------------( P4 |: h& I5 _6 {# k2 Y, _6 p5 I
System.Drawing
' e5 p z: p. J7 C0 p 程序集版本:4.0.0.02 j: m# Q) m- t! R- l* J
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE* Y7 e4 _5 `. l4 \) d
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
3 V6 T4 f: m! q' A1 m4 u$ L----------------------------------------
) P/ b( V1 Q6 J8 P9 T; OAccessibility
) c0 T7 b( ~' x' u" `( ~, Z! L* y 程序集版本:4.0.0.03 x+ R4 ~: k' C
Win32 版本:4.6.79.0 built by: NETFXREL2, R; F: l! X4 X" V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll% v! ]" X1 ?$ t+ L6 ^8 z) H: a! d* X
----------------------------------------
8 i* l$ [. b- n4 t9 k# h+ C% f: hSystem.Runtime.Remoting
) c$ j v) o0 M4 R 程序集版本:4.0.0.0
: K- b0 o- ~' |) F, B' e- a% l Win32 版本:4.6.79.0 built by: NETFXREL2
: s* |$ Y* F; L5 i$ e8 L 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll: l) r9 K; {% N
----------------------------------------
, P+ z* I4 _$ V6 F, _) ]System.Configuration
; s+ W: m6 j/ |- w' i" T/ c9 E 程序集版本:4.0.0.06 {( Z7 \+ P6 |$ E& \7 u5 G
Win32 版本:4.6.79.0 built by: NETFXREL2: z' U0 G' ^, o- z6 ?4 n% V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll$ ]' S+ _+ t0 A: h6 |; r
----------------------------------------
% k! a; N3 N4 y% B, U- QSystem.Core
; Q/ C6 o6 w }/ |, S, P. \1 k 程序集版本:4.0.0.0
2 e; P, ~' d! z0 D$ Q Win32 版本:4.6.79.0 built by: NETFXREL2
R& N8 K, ^3 _8 @% J 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
8 f6 V2 `: h) |----------------------------------------; S; L$ i% V4 a
System.Xml# N0 b& H' N2 g K1 o- S A
程序集版本:4.0.0.0
9 H: d$ P7 K9 k w) ]5 c Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
* H7 @3 F& B. L' t) t) ` 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll2 w0 g7 I0 X% y9 @+ x
----------------------------------------
# p! k. C* B# J9 W1 Nmscorlib.resources3 L* ^$ o9 q, y% \$ R1 L
程序集版本:4.0.0.09 U5 z/ I' r$ ~3 ^! K/ o4 L& H0 h2 g
Win32 版本:4.6.79.0 built by: NETFXREL2- S; l+ H+ U) f) g* \8 U4 w
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll3 T6 U2 p! w* B; W
----------------------------------------
7 H- f# s( W# h$ y2 dSystem.Windows.Forms.resources" o* [& a; |. _3 ?
程序集版本:4.0.0.0
0 w( w ~4 f6 {# ]8 c8 ] Win32 版本:4.6.79.0 built by: NETFXREL2% {) }; i# Y9 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.dll7 b' L& V3 H+ S/ B1 U( O, V
----------------------------------------
; R, U. {, n+ Y( s" E3 W- a7 w2 H! D+ V) A- k9 x% h- @- z5 g
************** JIT 调试 **************" @, `, Y' U7 c% p% U$ N/ y0 s
要启用实时(JIT)调试,
) D0 W3 Q9 B1 r* i0 }3 k/ `6 v) R& v4 \该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置* o0 ^' ~8 w7 R
jitDebugging 值。
, n# H% h% [- y编译应用程序时还必须启用
- E# M7 |8 Q& Y/ }4 O调试。- z( V' `; |4 ]& @4 A; x& B( d0 W
4 A% @6 r5 n d' |例如:# z1 b9 ]# ^2 i* \( _
6 M' E9 N, X: \1 }. y" n<configuration>) S# M$ ]0 w& S0 ^1 j: E7 X
<system.windows.forms jitDebugging="true" />2 G- M# R! g: D$ D
</configuration>! e3 Q( X2 u* Z
3 w2 B0 W. U, `( q5 X6 P
启用 JIT 调试后,任何未经处理的异常
& [1 q7 c- r4 J: e5 _% F" o- ^) x都将被发送到在此计算机上注册的 JIT 调试器,* Q% ~* e# Y3 x3 S' x+ B; B
而不是由此对话框处理。
+ E6 ^ l4 b7 u# z4 b" D7 |8 t) U# Y4 B6 a: q
|
|