|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
8 R% `5 x: J) w7 l3 g请参见此消息的结尾。
4 X6 X3 v* D' E8 H/ Z; f# K" L# \* k$ M) t& c) e
************** 异常文本 **************
4 j( E4 w; g6 T. C+ H5 mSystem.NullReferenceException: 未将对象引用设置到对象的实例。
6 {/ q" I8 Q6 }1 ~ 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
9 C. i, H; ^; ]% y9 C" N/ Q- k5 \ 在 System.Windows.Forms.Control.OnClick(EventArgs e) X+ w- L" W8 j; H1 J9 H% l5 j2 N
在 System.Windows.Forms.Button.OnClick(EventArgs e)
. m6 Q: p9 {: B5 h; Z 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent); |: }- _/ |% y4 U! M& w( H0 C( n
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
0 o- C4 p- H/ _8 u' y$ O+ M* C 在 System.Windows.Forms.Control.WndProc(Message& m)% |9 u0 a& g- i; K, e
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
% p0 N, Z2 T0 r J; u' J* N9 Y4 _2 } 在 System.Windows.Forms.Button.WndProc(Message& m)+ A- w, q8 v/ W$ k7 V, x5 `0 {4 M
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
# Y8 ?( Z1 q$ b! I" q 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)) Z. Q' _' }* T1 n9 t4 J
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)* W; [1 g0 R: a
* i6 v7 c) T4 `9 a1 h5 @% U$ h0 O+ e+ J
************** 已加载的程序集 **************. J" A( _( X* u8 w3 N9 e
mscorlib
) r! l4 l) D2 n 程序集版本:4.0.0.0
. B, \; j6 i" L6 A1 |: M! M) o Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
/ J0 _3 a) ?; U5 o 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
9 d7 ^0 t9 l9 K' X; m1 q# [0 I( Z----------------------------------------
- g* L0 A, {2 gPicture_Capture
/ p! A/ `, p$ M5 L q& Z4 F 程序集版本:1.0.0.0
0 s4 w9 [9 }5 V$ a Win32 版本:1.0.0.02 |' ^3 i1 |) [6 W
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe( v7 k. C* y- ~- j! V6 \
----------------------------------------: Y% {* S. e6 B3 E' B0 i' K
Microsoft.VisualBasic
' ~' {! l: H. y5 ]" p% W. L, d 程序集版本:10.0.0.0
' C! w/ h' r3 I; R, _6 V Win32 版本:14.6.79.0 built by: NETFXREL27 h- u( S9 p" d4 ?1 ]7 A
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
9 h x+ T3 S4 d4 b1 Y- F3 d" ^/ i----------------------------------------: H4 b; M0 C% Q; H9 t: g& w
System.Windows.Forms" f U% e, s: H
程序集版本:4.0.0.0
# G" t# l3 K5 d, j' n" ] Win32 版本:4.6.79.0 built by: NETFXREL2
8 J3 z s' e$ [: Z 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
5 o8 ~; m, G) K: T$ q0 A# H----------------------------------------
; U. C) Q# u, i* ]: {* MSystem- J5 l6 l' H6 d6 z7 P
程序集版本:4.0.0.08 @) s9 S, @. b6 Z! Q& J6 F1 V, `
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE/ A J" G9 G" ~3 Z- |/ U/ i! X
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll, l- a0 R; @* u! S9 c
----------------------------------------
+ O/ K V" P% Q4 qSystem.Drawing
7 S) h1 u, P& Z7 a( G3 r$ H 程序集版本:4.0.0.0
* d+ f* P& n0 `, n Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE
: q+ w+ N9 x |- ]; X S N2 c 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
5 K7 K' p; K6 ?8 W% F----------------------------------------2 S5 v, @; o r& [5 C
Accessibility
( }, a& }4 a$ N3 i" n2 @9 r 程序集版本:4.0.0.0
5 B! u# f1 |: h# C6 ^ Win32 版本:4.6.79.0 built by: NETFXREL2
5 R! Y& T' J5 q# I, b 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
- a( H- E6 z* y; E* c" J3 R# a----------------------------------------
- A5 F% Z' c3 _0 GSystem.Runtime.Remoting# Q& P% W! R/ ?+ j; h* J
程序集版本:4.0.0.0
! V5 n# h& {! A8 H Win32 版本:4.6.79.0 built by: NETFXREL29 L: C @% X$ {( S$ e& g
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
+ c0 z* C6 N* x& I+ w----------------------------------------
, L& r2 _2 i5 M' P5 B* o8 k& WSystem.Configuration
" I/ A+ S, X6 v1 r1 o4 A2 [ 程序集版本:4.0.0.0
o" L2 v* D! P+ {7 b! a2 `4 [4 i: m) O Win32 版本:4.6.79.0 built by: NETFXREL2
2 C* Y* A/ H1 }! y& W6 |" w 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll1 }6 S0 _# g0 ]- y9 u
----------------------------------------2 k2 [$ I/ ~3 j4 x8 o
System.Core
* N- x& U/ T, r2 [7 Q 程序集版本:4.0.0.0
8 h2 d$ z) C) X, U5 T* ]# i* E Win32 版本:4.6.79.0 built by: NETFXREL2/ ^ h9 v1 g1 n) X5 t" O5 W+ u
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
4 }+ {; p; e) h; d& g! v----------------------------------------
/ R& ]& f/ P7 h7 Q" mSystem.Xml8 A0 h9 V% J+ b p
程序集版本:4.0.0.0
& Q, `6 n% l" F5 J9 V9 i Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE+ y& X, Y" k R" L/ T* |3 ?
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
. o- |: [$ o8 n; G0 Q, m# ]----------------------------------------. y% Y7 e0 c3 a$ F5 ~
mscorlib.resources% x! y8 s9 R4 @3 S8 F
程序集版本:4.0.0.03 S' A( f" S( ]! J3 \7 x' j
Win32 版本:4.6.79.0 built by: NETFXREL2
. W u8 m8 k7 W1 H3 { 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
g6 S. R* [2 @0 t! ?% e- ]6 {----------------------------------------3 Z; r7 W4 Z6 `# {) S- @# ?
System.Windows.Forms.resources
9 d1 O C5 r6 ^8 C* ^* S 程序集版本:4.0.0.0
, c: i, n3 f. L3 l/ I* \ Win32 版本:4.6.79.0 built by: NETFXREL2
; |9 M; G% @2 ~$ n5 i% X 基本代码: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
) Y. v. B4 R* B0 e9 p----------------------------------------
' o3 N& |1 a. y% N6 c) G
/ O v$ B2 U: i! `( ^6 b1 u************** JIT 调试 **************
9 f2 O0 m9 f i要启用实时(JIT)调试,# f5 g/ U- s: b8 ]
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
& s. m/ c" n2 w9 K( wjitDebugging 值。
9 Z9 E3 A! ^# X. N编译应用程序时还必须启用
- a2 f" Q* g- w" Z调试。
5 Y- n% w2 |0 O! ^
, I" [* q. E' Y& v: R5 O4 j3 Y例如:4 f' y1 D/ H: F$ a
! j1 x; r/ \4 }9 Q* t
<configuration>
4 A) D; v4 X7 \1 e. D7 x5 B& r <system.windows.forms jitDebugging="true" />
5 I w$ c* q$ f: q9 i</configuration>5 a5 E% g* D+ _9 T( y
' Y4 N4 L( U9 u( q$ B5 ^启用 JIT 调试后,任何未经处理的异常. y8 G5 g0 q& A; m9 s! h
都将被发送到在此计算机上注册的 JIT 调试器,
) U( y" p* I$ I2 a2 \: H+ W而不是由此对话框处理。2 z5 Y- r! j7 A
7 d7 t s6 \9 w; a |
|