|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
- T% G0 _9 e7 o1 e6 C4 F6 K请参见此消息的结尾。1 B3 P' Y$ K+ A6 U( B
: O/ K0 E% [; f2 Y/ w' t8 O0 R/ I************** 异常文本 **************
5 E+ b7 J0 N+ N% S* i1 u, BSystem.NullReferenceException: 未将对象引用设置到对象的实例。
) f" ]; ~% R; J+ }! ] 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e) f, M6 W2 `; \5 x4 y
在 System.Windows.Forms.Control.OnClick(EventArgs e)
|9 {6 y$ F& m& q; C- M 在 System.Windows.Forms.Button.OnClick(EventArgs e)( b/ h! |9 r' J: J
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
- q' }6 d* V: z2 l& t, J5 i7 Q 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
' Y2 G! Y% `4 t$ O7 ? 在 System.Windows.Forms.Control.WndProc(Message& m)
q9 q) Q% d ?* Q4 ^* I 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
0 b: n1 G" W4 C6 ~1 X, O2 V 在 System.Windows.Forms.Button.WndProc(Message& m)
# [. `6 j$ Z. K/ |( _: `, ^: p2 y 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)# v/ S0 m: D4 z8 U( D5 ^
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)! i y, g$ ^! I& q% X- @2 N L3 T
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) k8 z- p6 J3 `& _$ b
' }# Y3 m2 k0 Y/ {% A
- ~: ?! o% F* a2 U" F1 f+ G************** 已加载的程序集 **************
& Y/ P" A% c2 R3 t! W( ^mscorlib
& @* x+ v o* H. H9 { 程序集版本:4.0.0.0
6 m0 C8 D: e, F. M" x Win32 版本:4.6.127.1 built by: NETFXREL3STAGE2 Z! Q6 ?- f: G/ c* t
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll7 n! F& h' G/ Q3 p
----------------------------------------
8 A2 q- d* Y- X% V6 B b. z8 m; n3 oPicture_Capture
, e0 m$ _) ~' O" o 程序集版本:1.0.0.0: @. A& G4 N: [* {! N4 a" A
Win32 版本:1.0.0.0
5 N' i( @8 B5 f& l$ ]7 ?: r% s8 ^8 c 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
: c2 v t a% f- j" o- |----------------------------------------& y( e4 z1 l) q7 M" K8 R
Microsoft.VisualBasic
5 Z1 W$ f; P& y/ E 程序集版本:10.0.0.0
. {& v( o( `* } _' U Win32 版本:14.6.79.0 built by: NETFXREL2* H5 _( x0 [) y6 t
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
2 n6 P$ s1 X4 h6 z7 }----------------------------------------4 R$ g& z, I0 y! x+ v1 m
System.Windows.Forms
( S, A9 B+ t; ~6 r. `3 R; Q 程序集版本:4.0.0.0; \3 j6 G; q8 r! c Y. X+ S/ v! n
Win32 版本:4.6.79.0 built by: NETFXREL23 b( H; L6 ^- W. l
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
4 y: v) d# Y0 J0 x! f2 [! V2 Z----------------------------------------
7 X" |. l A1 k N \3 c: qSystem D; C# e+ _5 J- ]1 C1 O7 m
程序集版本:4.0.0.0
T! Y) T, h: m' ]8 F7 z Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE9 b2 ?. H- L7 S
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
+ t1 v: k% L$ [+ j5 V+ e5 C4 r----------------------------------------9 V) _: D/ v8 y/ ?# D- @( C$ U K
System.Drawing- `) N5 i6 G0 ~6 Y2 ?
程序集版本:4.0.0.0
+ c* ]' N# ]7 v5 P/ k0 `8 Y Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
" j+ h- \7 f. m& C( ^# y, g 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
& B7 w+ U. f- H9 I2 D----------------------------------------' \- z+ l; k- _ w
Accessibility) ?3 z. V! d% m! d2 M
程序集版本:4.0.0.02 ^) V7 H0 S/ @) N1 r" z! z
Win32 版本:4.6.79.0 built by: NETFXREL2
- z5 q! f" Z3 c4 d U' q3 C 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll4 d3 X' R# [+ I! }5 \$ Y& Y
----------------------------------------- w {$ U+ N& {2 }" T/ x$ ~
System.Runtime.Remoting* p2 Q, H; V* o. O8 ~/ @
程序集版本:4.0.0.0
- @$ k& ^ i+ D' ~* a5 z4 {; T$ _ H4 \ Win32 版本:4.6.79.0 built by: NETFXREL2
( S' F! ^6 ~. L; F1 ^. ?# _" i 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
2 W* f$ _4 F( S! `: Q----------------------------------------
* G& l0 N& a' F" `( s9 @$ zSystem.Configuration
& Z, @5 {0 @5 P* @9 Y* n 程序集版本:4.0.0.0% b) _. e0 i$ |
Win32 版本:4.6.79.0 built by: NETFXREL2
0 j7 J/ @# `( h 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
7 L4 V# L" `+ K----------------------------------------
0 m$ }9 J" W5 O9 k+ K' {System.Core
3 b7 f1 I4 }+ _- m5 n8 u0 { 程序集版本:4.0.0.08 {$ x/ ~2 t8 ]
Win32 版本:4.6.79.0 built by: NETFXREL2" D* `, [* R" J+ I& ]) {! u
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll2 w% D" ]/ P/ c
----------------------------------------9 O H3 g0 a6 ~
System.Xml* Z, A6 c( l; P& I
程序集版本:4.0.0.08 t3 k' O, `, q4 X) f
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
' w2 l/ k }/ r6 ^+ ?6 ]8 c* T 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll3 D! [1 @; B6 Q; M2 X
----------------------------------------
8 G* Y1 v- X) U T0 S/ a* _mscorlib.resources8 k5 `) G# P7 n# c! [# v
程序集版本:4.0.0.0
+ ^4 p8 b8 H) \: {- o$ o Win32 版本:4.6.79.0 built by: NETFXREL2+ A- k/ x1 J( \8 Y0 z2 Q
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll8 X' }( k) C& F
----------------------------------------0 J+ M4 y2 e- y: X+ L* d
System.Windows.Forms.resources
# L/ K# ]4 x6 e& y+ z! D# @; Y1 x2 _ 程序集版本:4.0.0.0
- V- ` U; d# D+ G/ m Win32 版本:4.6.79.0 built by: NETFXREL2
. q7 x, W, G# `7 d4 Y! o 基本代码: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.dll6 i( f' l0 ]" ~4 e5 a/ P" \
----------------------------------------
: l$ o* F# q, F- d; n* O ~; ~# ]: R
************** JIT 调试 **************
% I$ D" u+ j I5 ?% H6 R ?6 _/ ^要启用实时(JIT)调试,
" H5 M2 t K$ R, F% P) {该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
3 k" [6 ]0 d3 }: C8 hjitDebugging 值。2 i* B! w# H- M m! i: X3 H( d p4 S
编译应用程序时还必须启用/ g! \2 N: S+ I2 P# z9 E* d: O8 ~
调试。; s# C9 A/ z1 C) r+ I/ |0 {, b
( i+ q" |/ O' i7 ?6 B1 E3 a
例如:
4 E, t5 Y$ r7 Y1 g5 E a5 b2 p$ u9 t2 q0 J- l4 @7 P
<configuration># X O. E) X+ K) D5 e
<system.windows.forms jitDebugging="true" />2 }* W5 b* o/ M& h" R) ]5 ^$ V
</configuration>3 ^! d% _! p( v7 v: J) w$ z9 `
) Q% a/ J, A8 b% y- h
启用 JIT 调试后,任何未经处理的异常
9 k( n4 a9 T5 O# |! W6 L7 V都将被发送到在此计算机上注册的 JIT 调试器,7 g) `+ Y8 ?8 v3 T" R+ M0 a
而不是由此对话框处理。2 }9 O7 x) [/ C
4 M# d1 n8 o) n. ^5 r
|
|