|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
* ?" S8 r4 R- N8 P请参见此消息的结尾。
% k$ B$ J! [6 r- G/ \+ W# j, k) Q( P& ?; |( R8 A
************** 异常文本 **************" F& t5 O: m7 x, r
System.NullReferenceException: 未将对象引用设置到对象的实例。1 b! a6 @: I3 g) i$ j
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)& ^; M# j0 b8 c& U p4 j. l3 _4 ~
在 System.Windows.Forms.Control.OnClick(EventArgs e)
. y( _$ K7 \5 g 在 System.Windows.Forms.Button.OnClick(EventArgs e)( s6 d9 s( K. j
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
' h% F" Q5 P" y& ` 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)0 c, K5 D' F! @' a: x
在 System.Windows.Forms.Control.WndProc(Message& m)8 K; j* I0 Z/ C9 z
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
! Q1 L8 @& A3 W3 {) m 在 System.Windows.Forms.Button.WndProc(Message& m)0 v; M1 `6 ?8 U
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
8 [1 x+ e# y7 C) D1 J$ ? 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
4 ~3 j1 B5 P" Y5 A! c0 B# A 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
- T |* I) @# n/ u+ ?/ V3 A( X( l6 N4 }4 N0 Y: o
5 N" c& [4 [5 D, ?************** 已加载的程序集 **************2 y2 @7 y/ \; _" _( f: K
mscorlib
( ]7 `9 c/ B! ` 程序集版本:4.0.0.0
4 j4 u; a! }- v" Z. s C Win32 版本:4.6.127.1 built by: NETFXREL3STAGE! L: [9 S: ?0 z# U$ W5 y# F" w
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
" V6 Y P9 R2 {/ h& @& x1 Q* m4 g----------------------------------------+ `- D+ B$ m j* F
Picture_Capture
6 C/ T0 N( A: y5 E 程序集版本:1.0.0.0* B+ i8 Q, U5 S1 W
Win32 版本:1.0.0.0 b+ x& }9 H1 ^
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
u% N" q V% F2 G% j----------------------------------------
: c ~, Q/ N5 H9 \* qMicrosoft.VisualBasic- o) J# `8 y8 Z2 X+ c& v" g+ T& a
程序集版本:10.0.0.0
/ v6 G( u1 i2 B7 } Win32 版本:14.6.79.0 built by: NETFXREL2
9 f: H( ]6 ?) X o3 o8 Q 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll+ @" O2 C3 I& @/ A
----------------------------------------
7 y" z9 d( ?& c! q% |" f( w8 pSystem.Windows.Forms
. T |8 w9 E' f; m2 x 程序集版本:4.0.0.08 d7 `1 m4 r: K* b( S
Win32 版本:4.6.79.0 built by: NETFXREL2# _* S- P# v0 r& U3 q
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
0 _9 V9 n' J! V6 x2 n----------------------------------------: ? Q, p3 j) u2 Q4 P
System
$ _2 l. a& y2 c+ s8 G; ? 程序集版本:4.0.0.0
8 _! `# c- p' g# p Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE7 x, g' o2 s( @7 p
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
) G( `! T( Z7 _* g----------------------------------------, |% d- s* }) O' ]5 h2 m
System.Drawing
+ x/ A% l, ?5 Y) t 程序集版本:4.0.0.0
# }: T- O0 a/ B2 m. O% }7 N$ p4 z Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE# ?& {* {( q8 d, t D
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll1 P( A& c* ^) S0 U5 x! Y+ b
----------------------------------------2 B4 z/ L# Y2 [5 @
Accessibility0 h5 C; r) N) j/ s" n
程序集版本:4.0.0.0
/ _: O" |0 ?% ^, d Win32 版本:4.6.79.0 built by: NETFXREL2
* b. i! l3 J2 G" M; s$ g3 T- L1 B1 E 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll% T9 d8 ?6 i* R& J. \
----------------------------------------
$ v) r( U# J" y: g, k6 iSystem.Runtime.Remoting
& Q1 {* i8 |7 y; d- j 程序集版本:4.0.0.0
( k8 s% I. u9 w$ @: g0 Y; ` Win32 版本:4.6.79.0 built by: NETFXREL26 k+ B. y4 l8 n
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
6 L' c5 Q, H2 R/ G2 `* N----------------------------------------
3 W# W% N- n! o# K* MSystem.Configuration
8 A6 u5 C/ Q, h- K5 m 程序集版本:4.0.0.0( [ Q& F2 J' V) b1 G; U
Win32 版本:4.6.79.0 built by: NETFXREL2
& Y6 I5 |+ u$ r/ v+ u$ { 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll$ I+ m4 j9 a e8 D7 k4 G
----------------------------------------$ P }" U U9 ?; e" Z0 ~
System.Core- A7 G0 c- p5 y) R
程序集版本:4.0.0.0! P2 f( R# Z: s& o
Win32 版本:4.6.79.0 built by: NETFXREL2! ~- k5 R) B: c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
. L/ X6 k' D$ m A5 `$ J* D----------------------------------------
2 k' J' A. m" @6 F. \System.Xml
~0 {! v3 X* n- M 程序集版本:4.0.0.0
( r. P- V' T# h o, t0 G% v, b" b Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
8 {: @6 M- f) v4 C9 `8 _" n. E6 v 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
# M( v x7 b( z, s1 Z----------------------------------------
8 r* q' @3 {& ^1 w& c W& U! ymscorlib.resources( K% g( V; X3 C6 ?" U& j! q" l' n
程序集版本:4.0.0.0
" l! B! p3 f" ~8 g% |" Y% M Win32 版本:4.6.79.0 built by: NETFXREL2
; j2 J& j0 {$ n8 h4 k' s 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
! W: T- t c8 n- M" N" g, C2 S----------------------------------------9 w e3 m& a. F. ^- W2 e" L
System.Windows.Forms.resources! f( {; }% w }8 Q* w2 V* t
程序集版本:4.0.0.0" W1 h( s8 w+ a% L: _
Win32 版本:4.6.79.0 built by: NETFXREL2
- d2 U; ]" x# M, p 基本代码: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
9 C3 w" ?0 T: O J5 R----------------------------------------
) x3 ]/ Q. {- t8 n$ X1 Y: T" c9 y; s5 Q; B' E4 k
************** JIT 调试 **************
5 e# I7 f- f, E( ^ [% l* _要启用实时(JIT)调试,! l+ }7 @4 J3 v
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置0 i' z1 }2 y0 J; x% B6 p2 n* \+ D3 P
jitDebugging 值。& f( k0 E8 I m7 T
编译应用程序时还必须启用, ?+ |; S- M% o# A9 f
调试。
% p5 t$ [0 Z, \& E4 w5 v+ _1 M( G. U. i7 `# o* I" \) d- i D+ r
例如:5 }9 a1 e4 ^% w/ I% [
" x3 J3 g: \! Z! `& U6 Q! d<configuration>
d4 e2 _9 [! t; ?8 l <system.windows.forms jitDebugging="true" />
$ M1 b" m3 `) m8 Y4 c2 `</configuration>
- z. a! ^2 }- ~" |5 H
" S1 w8 L9 t4 i& Q Z q启用 JIT 调试后,任何未经处理的异常
% I T1 A9 m' ~% F( r都将被发送到在此计算机上注册的 JIT 调试器,
, c6 d8 V7 }' K而不是由此对话框处理。
( N! N+ }9 P2 z' L3 Z% o
# G, Y; p- v( G9 J H |
|