|
|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,9 J. v" F8 E+ i
请参见此消息的结尾。" c$ g# n/ b+ Y; a$ E
4 k; R* G1 @6 p- ]# t* `; P************** 异常文本 **************
# |/ h. a" V5 u8 Q$ BSystem.NullReferenceException: 未将对象引用设置到对象的实例。$ B, N- d. E3 s) D- m2 v
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)6 O+ z% u; Q/ f/ X" a
在 System.Windows.Forms.Control.OnClick(EventArgs e)# F* }6 b0 @" c# j# n& S$ V H# @
在 System.Windows.Forms.Button.OnClick(EventArgs e)7 l2 X* L6 G8 R. t! t5 ]; [2 t( i0 ?
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
( Y/ O& Z0 w2 Z% B& @: z' O4 D 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks): O( M( F' S/ e P2 l( P$ ]
在 System.Windows.Forms.Control.WndProc(Message& m)
% m/ h7 B( v+ t* O 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)- D5 z9 \# \ h: h
在 System.Windows.Forms.Button.WndProc(Message& m)2 K' z. y1 W8 p1 w- J
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)( S; A H) ^8 ]1 k# \6 u o
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
1 D( |2 G6 w8 ^( J( ?# | 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)' a4 t: J: C( ~4 v* f2 b; U
% ?1 \$ i5 n7 U' L, N! ~9 M/ _8 C+ u2 Z3 D. j4 X( Y B/ R5 p9 D' _
************** 已加载的程序集 **************/ E3 _. H2 |) u+ R5 K- }: H
mscorlib$ |1 u' P I8 p+ Q
程序集版本:4.0.0.0
% @4 ?$ O& R9 o% k2 Q/ ~% o/ z Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
8 D! p# P# J- R+ \( T& E 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
/ m% Z& o1 P2 s& b6 |- H----------------------------------------
) A0 T* I! {* P1 {# _# a0 R" UPicture_Capture
% K |. D0 x# ^. k# M 程序集版本:1.0.0.08 T7 a& ]$ O/ N) |: o, T3 B6 _+ H
Win32 版本:1.0.0.0
, x3 ]% ^! g' R1 X 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
, J# W# d! H: N----------------------------------------
; S& H+ l* i- C9 ZMicrosoft.VisualBasic
5 p. ]+ z$ l' { g5 ` 程序集版本:10.0.0.00 T: b+ e- S; T. H/ D9 L
Win32 版本:14.6.79.0 built by: NETFXREL2* [' X2 c* w, i! z8 @9 w2 C* ~
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
# R, y) W& b# m p( f0 |----------------------------------------
% S+ K! L3 o/ @0 T3 o$ i TSystem.Windows.Forms2 S' n I/ o. `! B
程序集版本:4.0.0.0" i! s. y3 P* o \5 C* S# t
Win32 版本:4.6.79.0 built by: NETFXREL2
3 ]9 X. ^1 ]- ?4 b7 p" s3 R" C) q# y 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
; E' T3 T0 |) M2 {----------------------------------------* g4 h' y5 t& A/ |5 N( T
System; l0 E0 p7 v$ H6 L4 Z1 W1 Z- j
程序集版本:4.0.0.0
! D. B3 N: y W8 m( u Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE& t- c- [- Y a; M8 O
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll- d# |; g/ s7 m6 J3 J/ T4 T4 J
----------------------------------------# t4 c* ~% x! x# s2 R
System.Drawing
v0 x& _! X7 V 程序集版本:4.0.0.0
: G3 i5 p+ \9 C. D! Z Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE! T3 ^" `7 E9 G! n8 }
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll$ v+ u: w/ `! @' `+ _) a
----------------------------------------, W6 T' j/ r2 j1 `# i8 R
Accessibility: ^& q( e# z3 G, d9 J' Z4 z" V; v
程序集版本:4.0.0.00 }$ _! S- b. U z9 f
Win32 版本:4.6.79.0 built by: NETFXREL2
( p5 D' l1 v- u/ Q) \ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
8 F- F. t, _* a7 Q& r' W1 Z----------------------------------------
1 m& `4 Y9 e0 W1 F% bSystem.Runtime.Remoting
/ ~8 i; j9 [8 F+ Y 程序集版本:4.0.0.0
, A# J8 r$ p! {( t4 S6 B( h P6 s Win32 版本:4.6.79.0 built by: NETFXREL2
4 u1 M- N! x) y( a. I9 J 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
1 \& o5 \: w. T+ F G2 Q, ~7 l2 {----------------------------------------
+ j) Y( ?" i0 S- R+ NSystem.Configuration- m) P3 {/ Z; W0 }9 P; C, i7 V$ q
程序集版本:4.0.0.0
* l$ h2 U7 d' q Win32 版本:4.6.79.0 built by: NETFXREL2
' W, ~3 a/ L' N6 v; a F3 W 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll( L2 A; V6 c2 v
----------------------------------------2 @$ G& U1 x* S$ C9 \
System.Core R1 r7 b$ k( x6 \' f
程序集版本:4.0.0.0/ G3 ?9 Z& t5 f
Win32 版本:4.6.79.0 built by: NETFXREL2* _2 j% b6 U2 m$ O+ B
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll! f% D8 Q. r [
---------------------------------------- p* A' j! W$ S* m' p
System.Xml
( [- a; x2 X1 i 程序集版本:4.0.0.0
- g! B7 r% t* V! z Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
$ m! `6 R& r2 Y( v2 A; ~ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
6 |* Z' I# F2 ?2 \----------------------------------------
4 c/ u# L- \+ n% O9 hmscorlib.resources
2 a$ ^5 W( b/ f, u/ E. e 程序集版本:4.0.0.0
$ Q& L" P5 p: c; z- y A* v2 w Win32 版本:4.6.79.0 built by: NETFXREL2! M. `6 r8 K0 c8 q7 Z C' Y* D
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
w1 F# a8 \2 l) K- N$ j3 K----------------------------------------
0 I% L; [* J! O' OSystem.Windows.Forms.resources! Y. u. p. F# V" Y* h+ N
程序集版本:4.0.0.0
5 } g' R' ?. z9 M, b( h- m Win32 版本:4.6.79.0 built by: NETFXREL22 a5 K& V: S) J; m: W, j
基本代码: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
$ a$ R0 v' i/ z3 w: r" {2 H6 a3 U: i1 A----------------------------------------, v. r6 c2 [/ i, [& F3 Z3 w
9 j( Q, B& C8 y3 X************** JIT 调试 **************5 T; y/ S' v2 _: H1 K5 `
要启用实时(JIT)调试,9 q+ d- _0 k; \
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置$ T5 d+ p. G {; x
jitDebugging 值。
# z: P: U' T5 ?7 q8 n: E- {编译应用程序时还必须启用) p, V! i6 f! F( p, V! I
调试。
; y& b9 i7 }8 K$ e
- I% `$ D, y& x2 S例如:
]) |3 J. _3 m. M0 J; j
0 @/ _; L0 j+ \7 P. W<configuration>7 A1 }2 S/ S1 S2 m6 t
<system.windows.forms jitDebugging="true" />
- d* J: C0 B7 y; z$ m8 N</configuration>: y: T% c8 Y8 {% l" V$ r. G6 s
1 ]/ O5 M% W0 [* u+ Z
启用 JIT 调试后,任何未经处理的异常7 l6 X2 n9 ?+ l9 }* N
都将被发送到在此计算机上注册的 JIT 调试器,* b( @1 X+ }+ i! H! D& s: C% |
而不是由此对话框处理。
: g8 }5 O% a6 T; ]% x; x: u" Q: J2 q) E5 N$ _7 Y
|
|