|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,& _. G/ q4 M8 C* L# w9 n$ \
请参见此消息的结尾。4 w$ S* N& R) ^9 U9 ^0 v6 Z1 y
$ `& ?4 b+ D! _+ \3 T+ F1 c
************** 异常文本 **************
' T" D' V% ~# L& mSystem.NullReferenceException: 未将对象引用设置到对象的实例。' w' @( B, L5 ?5 I, M6 r. s
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)1 O+ o. B4 ]. j8 `% K8 Z
在 System.Windows.Forms.Control.OnClick(EventArgs e)# U( f0 m! V& Q
在 System.Windows.Forms.Button.OnClick(EventArgs e)7 [9 v2 _ P( W) W
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
; W7 M. e' k8 L0 h( n 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
0 X& B8 E- T9 ` 在 System.Windows.Forms.Control.WndProc(Message& m)5 ?! d! N4 v; E
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)9 P3 Y0 u$ ?/ y" g
在 System.Windows.Forms.Button.WndProc(Message& m)1 A$ o# h, r, Z6 g1 o! S Z5 e
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
~, X+ }, J+ F: G/ r# T 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)" [4 J! a* }' S: V& @
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
# t; M7 V% z. ^0 U) s
$ B8 C+ c4 D/ r8 y$ ^$ G
" t/ \: i% I# J$ [% U************** 已加载的程序集 **************3 v+ G' U' }: j1 U/ {& J
mscorlib* ]) ?' A& n4 e! o0 y
程序集版本:4.0.0.0
6 u6 p: C8 U) {/ w# ^ f Win32 版本:4.6.127.1 built by: NETFXREL3STAGE
4 N) }/ [1 z: N! p 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
: s0 ]2 j1 F2 t$ t, h% E----------------------------------------& @. L( a* ^8 ?! i! t
Picture_Capture# i$ }- n1 W0 e8 ]+ c. v/ ?: o6 f
程序集版本:1.0.0.0; J% @. d! D" L2 B
Win32 版本:1.0.0.0& s% C& F4 H" @4 Q2 K. b
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
# w- q8 L" x; j----------------------------------------2 p. l+ k; o- y& o; s/ R
Microsoft.VisualBasic/ X- F4 f$ i3 ~) s! M, w
程序集版本:10.0.0.08 ~7 l7 m( i* T' j* R& m# x
Win32 版本:14.6.79.0 built by: NETFXREL2# K: R. b& K4 E% C! @$ \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll. L% Y# U- \+ ]# `! r
----------------------------------------% Y \; ^2 @6 z% X* N. x
System.Windows.Forms
& m* P0 Z; E5 ]) R! U( l# F 程序集版本:4.0.0.07 K* |4 c! F8 l+ `9 a; s9 v
Win32 版本:4.6.79.0 built by: NETFXREL2) K ]7 C6 H' s. l5 l
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
2 c5 D) q( S8 [3 Q6 g; A" D8 D5 i( A----------------------------------------, O; H" }6 E: p8 r
System
& e% \) {) w! [! v 程序集版本:4.0.0.0! B! B$ |( B3 q, N) a
Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE
: ?# x/ I8 P5 R+ { u7 S 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
~1 _/ w: D( R" R----------------------------------------' k* Z; }4 Y# H. D! n; R0 C3 ^8 n
System.Drawing' _9 j, z4 L% F, P; T
程序集版本:4.0.0.0, G: y2 k$ G+ ?$ i7 O6 a' a
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE2 k1 f2 z; E% C! W) s8 N2 B
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll! U$ R7 L$ s4 `8 k
----------------------------------------
( j0 x0 y+ t6 mAccessibility% t4 N- I; R# o
程序集版本:4.0.0.02 V8 [+ r5 | H% p5 n9 e G5 ?
Win32 版本:4.6.79.0 built by: NETFXREL2# Z% U% c+ ^$ i' ~" J! D! j9 y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll( ]& N J. A" g* H' e/ _
----------------------------------------
\; h6 w, _. |6 V6 M: \) j( |+ }System.Runtime.Remoting/ ~5 p$ `4 l0 P& O7 ?" i
程序集版本:4.0.0.0, b1 i) ]6 Y$ |& _( I. f* v
Win32 版本:4.6.79.0 built by: NETFXREL2
( I6 ^9 E( f0 V+ f: [ S2 e0 T( H 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll7 b+ Q3 t5 y, [& Q
----------------------------------------
' V' B1 N0 t1 A6 d1 S( L: w/ nSystem.Configuration# C. w: E7 \9 W0 I' |
程序集版本:4.0.0.06 e7 N" t/ V [ C
Win32 版本:4.6.79.0 built by: NETFXREL26 d. A* J1 H6 a% q+ d2 c$ @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
# O7 u c \8 Z0 }7 ^9 i----------------------------------------# `* ]$ H h D" d
System.Core
( N: p4 m/ F4 P4 \5 o; i 程序集版本:4.0.0.03 C+ N! a2 X% ?; m* A7 S- [+ N; x
Win32 版本:4.6.79.0 built by: NETFXREL2
' G' W- ~, x+ S: w7 p 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll7 E3 ~) y5 j- x) f
----------------------------------------6 ~$ w" Z, B7 f* J
System.Xml
/ e0 {$ a$ C/ M5 w; W2 k 程序集版本:4.0.0.0
9 p6 ~4 o3 K) O( Q0 N Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE- S$ B4 C. t" x8 |) e
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll* C) f3 E- B; @$ W5 n
----------------------------------------& o, {1 k9 [7 k1 g' r5 I
mscorlib.resources) n9 I/ X% v# s( F
程序集版本:4.0.0.0, D8 \- |4 f# j3 e0 l1 F
Win32 版本:4.6.79.0 built by: NETFXREL2% w6 Q& o& o3 s) @ p, c6 O+ R# A
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll1 S$ l) k. v& F+ r' e7 g
----------------------------------------- b1 I$ F9 ~5 ?9 S- |, {, _9 K
System.Windows.Forms.resources7 o6 A' v( V- k2 O
程序集版本:4.0.0.0
% i& U' T: U9 I+ Q# I; |% f# Q Win32 版本:4.6.79.0 built by: NETFXREL2
3 i* N- Q. H( U: F3 i. q8 F& j 基本代码: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
% ^: K+ d* N& Y9 {----------------------------------------6 R! D* x% e& P8 z* U2 I, R
9 j( w, y2 H L
************** JIT 调试 **************
$ D% D5 \# }4 U' N. p: b& X q要启用实时(JIT)调试,
0 O! c# z; P9 S该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
# O( Z. \: k2 \6 ~jitDebugging 值。! W9 X, [* u0 @, U- C3 g
编译应用程序时还必须启用
3 \( R! t0 A, T* f% ^0 [ U8 d调试。* q* l2 u9 i0 U* K$ s9 f; V1 x
% F* z- Z0 r- g; I6 O
例如:9 t T4 X; ~: p/ f7 n, n
0 y3 D, Z( `- V% B
<configuration>
3 O% [4 @9 Q' B% `) Q( | <system.windows.forms jitDebugging="true" />* Z% ]. w% }; g+ Q
</configuration>
1 A; x; Y" A$ K H o+ Y; p6 x# A$ Z @$ F( Z9 ]$ m
启用 JIT 调试后,任何未经处理的异常 C: p/ P3 Z$ k; p! @
都将被发送到在此计算机上注册的 JIT 调试器,7 T" l3 X, x! Q1 A; E7 O/ s$ F
而不是由此对话框处理。
! K E# P! {! O; B# {' l7 {* l& S1 c9 a) V/ v3 x
|
|