|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,! ]- _( |. V( D& z9 j+ L
请参见此消息的结尾。" X+ y+ \: s a% k: v9 A7 z0 w
, t7 F8 ~1 j9 O+ f7 p; z************** 异常文本 **************; D( A/ U7 p6 V4 ~* R4 E: E
System.NullReferenceException: 未将对象引用设置到对象的实例。* @! f ?8 @: v6 H2 h1 {. [
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)2 D5 i! F0 L0 e3 T8 `6 E
在 System.Windows.Forms.Control.OnClick(EventArgs e)
" k$ M. }+ z0 |! [% r 在 System.Windows.Forms.Button.OnClick(EventArgs e)
/ d! x& o, \* R: Q2 p 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)3 F* R& c3 N& ~7 v: u+ X) C% G+ c
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)4 r* U. s- b+ g j' [! O
在 System.Windows.Forms.Control.WndProc(Message& m)$ \- ?. O. D; N+ m; p( O1 H
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)( v1 ?0 _% ^* e+ s/ W& e" s- C" t4 r8 _
在 System.Windows.Forms.Button.WndProc(Message& m)) y5 `7 @) M: [
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
2 b& K; w5 \3 g' r E 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
. @& c1 l* Z9 o( n0 n* a 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam). a/ V" t, Z% P: L+ G/ c6 M
) v5 W, u0 C- |+ l1 b: V5 e
6 X3 e7 L5 V: v* x3 `0 T************** 已加载的程序集 **************
: ?6 y6 ]" h4 W# P* i1 L( dmscorlib
@3 q5 t( t( v/ c, B1 X8 g 程序集版本:4.0.0.04 [; m% e1 |: @5 p6 x& V+ [
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE b: [, O: h3 G% |: M
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
" n+ e, D. _. y, u9 f7 d0 `4 k----------------------------------------4 Y6 r1 v m. N! Z9 T5 N0 J; P
Picture_Capture
: m- n* k M" j& q5 C7 W1 J 程序集版本:1.0.0.0
7 S& P$ F4 Q/ F" c Win32 版本:1.0.0.0
# A, e$ D+ R' i# o4 y8 Q* C 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
7 ]) q6 n" [8 i# n3 Y, L+ _# J p5 M----------------------------------------
6 T' W, B7 I+ l: K$ n/ lMicrosoft.VisualBasic
( O$ Y0 E. r2 f. b8 U1 D1 H7 X 程序集版本:10.0.0.0
$ t; F- D8 `' l9 s Win32 版本:14.6.79.0 built by: NETFXREL2
6 j' Q! W7 ?7 p' q# E j 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll% ]9 C" T1 o: f3 _
----------------------------------------
/ F: @: u; N# F' h# v) X& ^1 h* QSystem.Windows.Forms2 Q8 I. ^+ z: {
程序集版本:4.0.0.01 B# X8 P' b8 u
Win32 版本:4.6.79.0 built by: NETFXREL2
* ~3 {! x- O* d; O+ S, X% ]/ E 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll6 F9 a) G( _; ]* J- ]
----------------------------------------% N$ O7 O$ {/ r0 x0 ^
System
' }. p' i# g2 `4 ^# J, Y 程序集版本:4.0.0.02 u' h% ~7 z! E6 \$ E$ k
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE3 o6 C. b% p; [! D9 q+ q1 S. C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
# D3 O/ _; s3 L! D# @1 z----------------------------------------
4 T3 A# a8 ~0 O. z! f* Y# k aSystem.Drawing3 o( u1 X+ g9 F% v) d/ _8 |
程序集版本:4.0.0.05 m# w7 x4 R1 p
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE/ ]. q, j4 R* Z6 r6 z% m ?7 q; n
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
7 x- u" X) e, A1 E1 b$ R! g----------------------------------------( Y, o5 D4 N& }8 d) W
Accessibility
R8 E% Y8 T# t# d" Q5 f7 ~+ K 程序集版本:4.0.0.0( H; w. N6 J0 d9 a+ |
Win32 版本:4.6.79.0 built by: NETFXREL2/ j& D4 o" x" z' X. ?: E# ~- h
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
4 p% K3 x" I' H0 c* H! D. I1 D; x, ^----------------------------------------! @7 H6 _: W8 L W
System.Runtime.Remoting
; M: I% `6 D% v 程序集版本:4.0.0.0
) \% T: d3 p$ I8 H ]& f$ q# W Win32 版本:4.6.79.0 built by: NETFXREL21 U0 w: z' g7 T' j, f+ Y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
9 P$ `% d( e" M7 m----------------------------------------) u# Z$ ^& b+ V6 M
System.Configuration! G q+ v% \ K
程序集版本:4.0.0.0+ p: Y7 L( t% h
Win32 版本:4.6.79.0 built by: NETFXREL2- z+ N( P3 ^$ m q7 M( ~% H( K( Z0 q
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
4 D: j( \1 H( u. ~' y5 A6 k& p' t----------------------------------------8 y, I5 Q$ @7 q1 p& ^
System.Core
2 _" O- G5 U3 Q1 m 程序集版本:4.0.0.0
8 d. k4 @" m0 w8 W/ P' Q! \ Win32 版本:4.6.79.0 built by: NETFXREL2; x8 e- J7 F; [! I
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll& F6 K. S$ z! k1 w- d( ^
----------------------------------------5 X/ p5 N& o2 J. d2 V* }* h9 ]
System.Xml
1 u! _- F8 l9 c" q: X 程序集版本:4.0.0.0
8 m2 N) n& }( C y$ u+ E" d6 D0 L Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
" K4 {+ r2 Q6 Y- l j' ? 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
/ u& A9 S9 u' B( [) l) n----------------------------------------6 M4 [; v6 S! k# A4 K- c; a
mscorlib.resources
# A# a3 H% S! D 程序集版本:4.0.0.0
8 ^. g8 B0 D0 d, ^& W; v- p Win32 版本:4.6.79.0 built by: NETFXREL2
0 l: G- {: M/ }7 c 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll: F$ T; S% g" ^, L2 v# b8 h$ u
----------------------------------------
$ {' o. d0 M/ _3 n: {: \. ~System.Windows.Forms.resources2 i% }) T4 |. g4 @* {6 r7 R" F
程序集版本:4.0.0.0
' T/ u# X& u8 K) R- V4 b Win32 版本:4.6.79.0 built by: NETFXREL2+ n I f8 K; t4 H3 q: N
基本代码: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( w: u# H$ K1 U9 E9 `' D
----------------------------------------5 P% W; c9 j: [- r; b I
4 q V! Q% ~+ @- U6 U. s' \$ F, T************** JIT 调试 **************
% p$ c# M) F& p" E* v8 J$ o* x要启用实时(JIT)调试,
9 K8 I1 s% }/ {. e! X8 R该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置7 W! o0 X# H8 Q, G* ~6 Y$ r
jitDebugging 值。# C7 m' R& Z+ r; D
编译应用程序时还必须启用; @, h. \" y9 v1 ?2 h# K' Z0 q
调试。2 O0 q3 u% V! X% O5 T- Q
' ]2 E ^& B0 |6 Q+ q
例如:/ @; E( d/ O$ k) h( Z* z
. ?" M5 `# T) ^: `1 P1 i' x
<configuration>
# r7 b8 `9 q/ ]# k; O <system.windows.forms jitDebugging="true" />6 r+ _9 P, i+ `7 T) U E
</configuration>; h; W! ^/ d! @( |8 H6 U
, g) \4 a7 n3 }& q启用 JIT 调试后,任何未经处理的异常
8 v* x6 W3 i0 w3 l; o; w都将被发送到在此计算机上注册的 JIT 调试器,+ |4 r0 o' S7 Q& E: g
而不是由此对话框处理。% t B x8 l* ?/ D# L
1 w7 c/ l5 x9 V/ }# A$ d |
|