|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
. L, J- @2 M! K请参见此消息的结尾。
* `( J2 x) I, @, q) X: M3 ^" `; @) H3 l$ V* g/ B, j
************** 异常文本 **************8 z$ {1 J& h- _
System.NullReferenceException: 未将对象引用设置到对象的实例。
9 t8 _; J& U& n0 N& | 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)) [* H) ~, t0 Q8 n7 P( P
在 System.Windows.Forms.Control.OnClick(EventArgs e)
# b$ x7 M1 B0 n1 H9 t" e 在 System.Windows.Forms.Button.OnClick(EventArgs e)7 J3 l: j2 }: R- E
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
3 A8 L2 S" i s7 |8 p9 G/ `6 G- z 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)) \. @& s1 {& U0 H/ b9 ~3 J
在 System.Windows.Forms.Control.WndProc(Message& m)0 d' q" z& ]3 v- U/ g9 N. R5 R2 T) z
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
7 c; h, Y% q" r5 m" d4 A 在 System.Windows.Forms.Button.WndProc(Message& m)* T- n2 s# W! z0 |9 C' ?
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
, s) m1 }' v: r 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
, x; p1 y' J" ^6 I3 y. R J7 q; v! V; c 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam): x: i3 n3 H- e8 e
+ a5 z* x% v4 ` ^ P- y5 U+ x) c! ~
************** 已加载的程序集 **************
" J) L7 P0 t& K9 O- hmscorlib/ W: @9 y3 I9 i6 L9 t
程序集版本:4.0.0.0; P- K$ x6 H, q# S# ?2 W4 y% c7 \
Win32 版本:4.6.127.1 built by: NETFXREL3STAGE8 A0 E- e' x9 Z
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
& v4 o) O2 G$ l6 u----------------------------------------
$ j$ p; }6 f3 e$ HPicture_Capture0 ~3 X5 G6 \1 y9 F% b- ~$ O* p
程序集版本:1.0.0.0! X; }! b% B2 P' _" m
Win32 版本:1.0.0.0! t+ G* X$ p: J
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
# O; R3 R& ~4 V0 q----------------------------------------2 B; @ x+ |( l. @& ?1 X
Microsoft.VisualBasic3 W3 `8 I; f- v2 g9 J# u/ o8 u
程序集版本:10.0.0.0
: L: R- K, S+ \3 M; j Win32 版本:14.6.79.0 built by: NETFXREL2% O; h% `; Q6 _0 @; f
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll/ @7 h* ? |9 w J
----------------------------------------) L; e0 ~# a/ }' Z1 N8 ]0 [
System.Windows.Forms
+ C, P0 S2 `; M, \: x" J 程序集版本:4.0.0.0$ ^9 \/ Y* c! P, o( |8 Q9 J
Win32 版本:4.6.79.0 built by: NETFXREL28 ]: X1 c0 x( V: l6 }3 r
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll+ n; J% e; B! C1 f
----------------------------------------/ ^: r5 x0 n6 a+ C
System
$ ], o* y" }7 J K8 p$ \ 程序集版本:4.0.0.0* c2 q* L6 Z: K' t/ v) M! |4 H
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
0 x$ S+ w1 W& U+ N# K P& e8 I1 m 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll) q8 ?2 e- b9 C6 T0 \
----------------------------------------
9 E2 d: ?5 S! r9 w2 XSystem.Drawing
) H5 |6 u7 r, b( _. ?! U 程序集版本:4.0.0.0
6 y x" j: l9 N Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE2 \" O( J- y+ H9 C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll: ^# }: a( ^# a g3 H
----------------------------------------
& \; t! l) t: g5 X0 K+ G+ CAccessibility8 X+ v3 m; ~$ S0 A, L$ Y
程序集版本:4.0.0.0
& ?9 N9 y/ R( u5 m4 n! S Win32 版本:4.6.79.0 built by: NETFXREL2
" G% _+ M7 R4 K: m! g 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
+ p8 l/ _( f3 p* H' }) U1 q0 h----------------------------------------
5 |! ?# i1 P+ @0 y7 e. {+ x* [& DSystem.Runtime.Remoting$ F6 C% q7 z$ v1 h
程序集版本:4.0.0.0
/ W4 [# h! R$ b( o8 b3 d1 E; R Win32 版本:4.6.79.0 built by: NETFXREL26 h* a, a7 F4 c+ G G% c ^
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
; S5 S$ i; S$ r0 h4 ^" b1 g" ^# \9 a----------------------------------------+ M& C: B8 I! _+ \6 ~
System.Configuration
5 Q% n1 h v# C- d7 S+ j' L6 C w 程序集版本:4.0.0.0
/ \# N; K" @1 g" Q. o Win32 版本:4.6.79.0 built by: NETFXREL2) S8 K1 A/ t5 y. @" o
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" ^8 S9 t1 B7 A+ }, T
----------------------------------------
! ~. a. T8 |% W/ } j9 J$ m7 |6 QSystem.Core
" s: Z4 M9 d8 d& }' C0 S) I) T0 l 程序集版本:4.0.0.0
8 w G/ C# C& O) k8 a; L( L Win32 版本:4.6.79.0 built by: NETFXREL2
. M8 l2 q- Y1 H# H# D 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
- Q3 e$ M- d. ]----------------------------------------9 S' a# ]8 ^8 E* X. K; [0 B! c3 n
System.Xml
! V8 Z Y( \. |" t% I: N 程序集版本:4.0.0.0
3 C, D# Y6 \; Z8 ~ Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE
0 P4 H4 F: y, Z 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll1 ?; ]' m L( K5 Y' r
----------------------------------------
7 K8 G, [' k3 o% l& c! |mscorlib.resources1 Q' }% ?" B! o/ K, f8 Y
程序集版本:4.0.0.0
8 k5 h4 [9 ~- n' C Win32 版本:4.6.79.0 built by: NETFXREL2. M( E* |* R) P- h4 k5 [1 G3 _' v/ P
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll) |4 f: A# [* [
----------------------------------------6 H: r& h" L/ P2 l; s3 n. {, x
System.Windows.Forms.resources
1 s" d+ O! C, ?5 A" r! G+ a 程序集版本:4.0.0.0- u# l4 H- b! m
Win32 版本:4.6.79.0 built by: NETFXREL2+ g8 g5 w$ @7 {
基本代码: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.dll0 h: l D7 }+ P7 l" @5 i. M8 R
----------------------------------------
4 c4 {1 v+ \/ c+ v! \, ?. O& G
************** JIT 调试 **************
+ N* v7 O5 L# F8 f' F9 W- x9 _& S要启用实时(JIT)调试,1 H, V+ u" j; ]9 R4 l5 a. o% Y
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置8 d6 s& Q9 U# c4 |+ n
jitDebugging 值。- z9 J7 n0 _2 w( x1 a* D& |
编译应用程序时还必须启用6 [& I& e* f* b/ I- a. O
调试。
?5 e# ~2 ^( ^* m- G" b1 [9 @0 k9 s: ], }; k% S4 {( o) i3 y
例如:' d3 e! r$ V' |, `! R$ Q
/ _- L W: K. t3 H9 x2 ^5 s* V<configuration>
h+ Z2 b, @$ U' l+ ? <system.windows.forms jitDebugging="true" />
4 D( p# x5 N& E n</configuration>
. F- {+ Q* H: p% K- ~3 G) r: T* l R- i- C( N* C: c0 Z
启用 JIT 调试后,任何未经处理的异常
: \. |% r9 x1 s0 G1 f+ b3 i都将被发送到在此计算机上注册的 JIT 调试器,
# `- a3 ~; `* _9 r( L, x. n, @1 v' X6 a而不是由此对话框处理。
: {- u& K8 h c0 U0 ^" w
" M, I) P3 ^, Y, W; x+ X/ h q |
|