|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,. j6 X) ]' r1 X4 R2 r
请参见此消息的结尾。* \$ U. ?6 b( _" V- I5 E3 ?6 m
# f. u1 b& m9 o/ v
************** 异常文本 **************
1 C; K8 C- T* c. P/ r3 }2 sSystem.NullReferenceException: 未将对象引用设置到对象的实例。
1 U& M& E3 K3 o6 K! U 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
9 q6 p. \. {0 A/ Y( T( V" a5 P5 \5 @ 在 System.Windows.Forms.Control.OnClick(EventArgs e)( @+ j2 U: ]: D8 e9 U, e5 Z
在 System.Windows.Forms.Button.OnClick(EventArgs e)
& O4 ~ n: x |: ^3 U" c 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
2 E. c5 o7 f- G' I4 j b- l: d, O9 ~ 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)3 m. K* j$ J$ s0 g
在 System.Windows.Forms.Control.WndProc(Message& m)
" j( n6 T9 K/ i5 o# F2 r; M3 K 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)8 X: l; b/ C3 s7 b) ~/ Z; d
在 System.Windows.Forms.Button.WndProc(Message& m)
& t+ p0 T I3 D2 _ i 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
, ~) b! N/ [) L 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
5 J0 k7 `+ B( O; C4 t! p! L; ] 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
0 `7 @) z7 K0 F/ i1 @! k6 _' [1 E
5 _3 N* B( ?; [8 m( N9 ]( b7 p# Q) s6 g
************** 已加载的程序集 **************
$ p9 r' c7 y5 [4 B8 @2 K6 ^$ hmscorlib; W* j2 T" o$ N$ a5 V6 d+ e
程序集版本:4.0.0.0
: s. i/ P$ ^) V/ K& D Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
& i! ]- J5 I5 b; B' ], L; y7 u6 C1 @% k 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
# e) t J1 K: C. }$ q3 |1 t----------------------------------------; E% ]* q. G/ S9 Z/ Q' Q u2 f% }
Picture_Capture
/ d- v4 q1 L3 h; J1 `/ i) \6 h( |0 z 程序集版本:1.0.0.0
! ]% y+ S2 t, |$ G Win32 版本:1.0.0.0( g7 w6 ?" T. R: V
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe" H7 _2 q0 ], |4 _3 T1 I. q
----------------------------------------
! p- R6 Q# K" i* M" hMicrosoft.VisualBasic
# C- ^7 a |) X0 j4 H 程序集版本:10.0.0.0
" v9 D$ K& F( N4 G2 c) C Win32 版本:14.6.79.0 built by: NETFXREL2
6 X, k$ d- I V" K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
# j( B7 I9 r8 o; o----------------------------------------
" V5 E* p2 `( ~# j6 |4 I, k6 SSystem.Windows.Forms. s5 K3 W* \* F8 \! F1 T
程序集版本:4.0.0.0
; R( S& `0 [5 b Win32 版本:4.6.79.0 built by: NETFXREL21 n8 U# ~8 g# F, P' C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
: V# i2 W" Z5 I! @( ~, F- l8 G) Y# i0 m0 G----------------------------------------
9 I+ U( @6 F8 D% cSystem
- {0 Y9 D; S" d) |7 Y) \: \, U9 d 程序集版本:4.0.0.06 g4 w! e0 Q, A
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE3 K' G3 E0 d) u+ W1 [0 k0 u
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll3 d/ q, b0 p# x2 B7 V
----------------------------------------: W: ?5 l* m a- W' x2 V" G
System.Drawing
4 C) b, r C& X 程序集版本:4.0.0.0( j8 u7 R, C2 O" ?' z( i g
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
t2 }( ]3 n. q! D, y; A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll* {+ T* y$ d N3 w9 T, f' e* J
----------------------------------------
0 R, _% Y) U* A# B/ I3 UAccessibility
4 `* I8 H( o) p$ f 程序集版本:4.0.0.0( E0 k) s, D3 a5 g
Win32 版本:4.6.79.0 built by: NETFXREL2
g: `9 h; W! a7 }; _2 D+ l 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll% g# A2 q# c" M5 V4 O. n# |! j
----------------------------------------5 o4 S. Z7 p. M! p& I6 Z
System.Runtime.Remoting
% H( m1 d+ M$ [; Y$ R 程序集版本:4.0.0.0
. J8 ? [$ F5 ~% x! U% z Win32 版本:4.6.79.0 built by: NETFXREL2
- V2 |- j" f6 C! j) o+ l 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll, x6 f* p7 z. {1 _6 a; v7 o
----------------------------------------; L3 v; D# y/ Y4 h1 }5 U
System.Configuration/ j7 ^% N+ v9 G( _$ b* |
程序集版本:4.0.0.0
1 f/ [! E3 y1 V/ m+ U) I Win32 版本:4.6.79.0 built by: NETFXREL20 w8 y2 ^! _1 g( k
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll4 ~& M5 N }5 x) `. A
----------------------------------------. Z# F5 m1 h Q* k
System.Core
) G1 t# {( ~; O5 |" o7 S: N7 Y9 f* X# A6 z 程序集版本:4.0.0.0
: m! r \/ U! [+ k- ^: f Win32 版本:4.6.79.0 built by: NETFXREL2" X& ^# d: s. d. \8 ]" I- t
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll) {# Q- z6 ]% D: X, x
----------------------------------------
+ g$ l& a" E. [8 @" vSystem.Xml
3 S1 k0 A: U0 f 程序集版本:4.0.0.0$ ^: a2 z- N2 b' O/ {0 D
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE+ t8 b' L1 K9 [; L6 W& `2 {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
4 |0 [( q0 P& E( u- a5 x4 |; v----------------------------------------
. w/ k: _) S5 P$ N. F% h1 ?7 Umscorlib.resources
7 H% n2 p4 v \7 c2 N 程序集版本:4.0.0.0
+ M9 q9 s' ~# }4 |" r, q3 l: K* M Win32 版本:4.6.79.0 built by: NETFXREL2* w) f2 n* y) z _: ^# h
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
" q8 ^- a9 I6 {----------------------------------------
! F# A) y6 z* t0 k# b4 D3 S1 eSystem.Windows.Forms.resources$ o$ y/ V3 i/ \1 T9 V% G
程序集版本:4.0.0.05 P; V$ w0 I5 Y9 S8 Q) l
Win32 版本:4.6.79.0 built by: NETFXREL2
* d/ K! w4 X" v1 c: I4 K 基本代码: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
, @% g' V* R$ h# M7 G! c& Q1 j" c5 `) i----------------------------------------, _ W- l& B, c, }& p( `
; q7 X, n( ? C5 o& o************** JIT 调试 ************** o/ _5 [4 G& m* g% \
要启用实时(JIT)调试,3 Q" H! t; M& s1 F
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置) [9 z! f5 W7 l
jitDebugging 值。+ n7 x- x- v, K( i6 }7 M3 j
编译应用程序时还必须启用: J5 Q+ I4 }$ J2 P, @! W- V, s* V
调试。6 B% f+ m$ [$ E
+ {' W% a6 E9 `% p' I0 [' t
例如:0 S, q% E5 v2 v0 r2 v
0 C: S( \2 }+ `; ?( o/ o a L
<configuration>+ E' M3 R/ U7 @$ t& y4 \
<system.windows.forms jitDebugging="true" />
, B+ q. N6 _7 v) ^$ N/ o9 T</configuration>
! E( @ r( x0 \: C) r6 T/ w6 x1 o! X: o* {4 f0 Z
启用 JIT 调试后,任何未经处理的异常
2 @+ R- M: D0 g$ }7 Y都将被发送到在此计算机上注册的 JIT 调试器,
1 {) e* c; N& Q5 t2 w而不是由此对话框处理。
1 L3 c3 X- d5 @) D3 F% @7 p
1 x' l o+ |- q3 @) ]/ R( b' ` |
|