|
发表于 2016-5-11 23:45:04
|
显示全部楼层
有关调用实时(JIT)调试而不是此对话框的详细信息,
! V; p9 w5 X" Q& B% P请参见此消息的结尾。7 @- O/ A. O- @# ^3 N& _' G
- S# z& f s2 k( ~3 D7 a3 U. r************** 异常文本 **************
8 N* `2 J, h: W7 F3 G$ WSystem.NullReferenceException: 未将对象引用设置到对象的实例。( C5 c" r# ?1 G/ ~
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)+ U$ e T- V3 ^) q, x
在 System.Windows.Forms.Control.OnClick(EventArgs e)
+ `6 S F: Y" | ~' \5 [% d+ I 在 System.Windows.Forms.Button.OnClick(EventArgs e)
( ]1 Y% V" K" n; ^$ a, b 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
( d0 p) ~; d5 @2 }) s 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)% v3 ^ U, W& X1 k
在 System.Windows.Forms.Control.WndProc(Message& m)
f Y1 H! i; \8 j0 L 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)4 X: V4 F2 w* I. Z% k
在 System.Windows.Forms.Button.WndProc(Message& m)6 H2 A5 Y# O3 d2 u
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
2 A6 |* t* q- W" i 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)& A6 C2 H3 m8 f
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
+ W# O0 ^% | N' |) t M5 n: k% f# o# v/ B! H8 `
; _3 g7 Z- k1 u( Y% ^" Y' J3 J************** 已加载的程序集 **************
8 D k0 n1 h9 C5 omscorlib! |) x; [& N( G2 l
程序集版本:4.0.0.0
6 e2 i$ G* M2 _, g4 k" g, a& G* z Win32 版本:4.6.127.1 built by: NETFXREL3STAGE* J( u: p% S, f/ s) Q
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
' L2 y- d( r4 f' @/ {, ]----------------------------------------! t9 _4 i H }
Picture_Capture+ d9 }# U. y+ t# C. z1 e
程序集版本:1.0.0.0
1 }; f5 v/ q" ?* R2 x Win32 版本:1.0.0.0/ S$ S% B1 V7 c2 k
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe. P& L- O8 ?2 V5 t
----------------------------------------2 K/ s! m( b0 R$ e$ K
Microsoft.VisualBasic5 y; `9 s0 j) ?1 w# f L2 F% J1 ^4 U
程序集版本:10.0.0.0
% f* N$ W$ Y5 d1 o5 q" G; r# z Win32 版本:14.6.79.0 built by: NETFXREL2
) O, G1 q4 j; r T' ^$ r: N 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll) U3 u0 h+ _, ]" U3 U! ~* p3 M
----------------------------------------* V; I/ ~6 R6 E. l/ k0 n1 G
System.Windows.Forms
1 H( d) ^8 Q$ H* T" p3 u 程序集版本:4.0.0.0
- A& z' m7 c' }" s* T: u9 I$ S Win32 版本:4.6.79.0 built by: NETFXREL2( @. X$ L' }2 b8 n' P
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll' {3 P$ u% e4 Q- L* h8 o: s& }" W
----------------------------------------
0 B7 m w2 V8 G/ t& z; ]System. _3 g h5 Q% a/ a: T5 a1 t# M
程序集版本:4.0.0.0
# y9 @% }$ [8 L! I Win32 版本:4.6.1075.0 built by: NETFXREL3STAGE+ K, i, {) \4 N% C6 }. w$ P* N4 V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll1 `. i1 h" O( \; h
----------------------------------------
. s8 v. W g8 R4 GSystem.Drawing5 K/ _6 ~, ^0 d) ~; Y( v
程序集版本:4.0.0.02 t2 O Y! Q3 S' K
Win32 版本:4.6.1068.2 built by: NETFXREL3STAGE) i0 w) G3 ~) `5 T. s- c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll1 }) g. A9 Y C# s# ~6 {7 h
----------------------------------------+ z3 U" X0 g: j; T$ q4 p* S y; W
Accessibility$ A& W" |7 G; m
程序集版本:4.0.0.0
- z6 X# U' Q6 O+ W$ B1 y1 ]2 U. U+ M* \ Win32 版本:4.6.79.0 built by: NETFXREL2
- h: j# H" s5 d$ P0 J 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll1 n; m* P0 `) [8 v
----------------------------------------* S4 K" V' j1 U# b
System.Runtime.Remoting( v, m- @7 f' ~* e( G
程序集版本:4.0.0.0
& `' Z$ \6 }* P' ?: d Win32 版本:4.6.79.0 built by: NETFXREL2
1 l$ v# ^9 |+ R8 U: f2 p; m; {- K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
' {; p9 p+ \5 a- g- z, A----------------------------------------( [+ X8 x7 K' N4 `' {
System.Configuration* c5 x8 ~. x6 m
程序集版本:4.0.0.0
% v- H) {* F9 r0 v' ? Win32 版本:4.6.79.0 built by: NETFXREL22 ~& i* y; u+ z! p8 ~" A" Z
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
8 Y/ P# O6 B9 D1 U+ K1 N9 x$ s0 t----------------------------------------
/ |3 D& V4 H z' \; DSystem.Core+ r2 j( i/ d: Q0 v) B( Z
程序集版本:4.0.0.0
, X" \6 g. m0 \( k Win32 版本:4.6.79.0 built by: NETFXREL25 K0 p0 j1 h6 g1 R5 C$ N# j ^; u* y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll) ~: M. d9 R# s" i# y9 v4 K
----------------------------------------
+ }) q2 {- K% ?7 v1 O* Q u; |System.Xml \8 `2 ^1 g4 i$ e! O- l9 r
程序集版本:4.0.0.0+ A* S6 y( U! f; K3 r$ o
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE' m7 B5 |+ l H
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll1 m2 Y( L& m% W
----------------------------------------$ f" t+ n! `# H+ X: `
mscorlib.resources
# e6 s# g8 D0 ^ 程序集版本:4.0.0.0& Z4 {- o0 q7 S, h& L" P2 z# g
Win32 版本:4.6.79.0 built by: NETFXREL2
- ]# d) ]3 |* x- P n: k 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll9 }7 s! E S1 r& A" ?2 [
----------------------------------------6 H* {- _, P- p6 {! V
System.Windows.Forms.resources
8 Y9 h8 O5 B$ z8 x 程序集版本:4.0.0.0
5 ~8 ^- |! r+ c9 y$ s/ l3 @ Y Win32 版本:4.6.79.0 built by: NETFXREL2! @( k" A1 n9 q
基本代码: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
' a7 u6 v8 y5 G# u B----------------------------------------& |9 O$ w3 ]! P- N$ q
J) f& i% k! j$ k" p************** JIT 调试 **************9 E7 I) q7 j; |: {" m! z4 M
要启用实时(JIT)调试,; s3 [& w# w2 A; X# d5 i0 z
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置0 p. l! o4 c3 h. S+ L- H
jitDebugging 值。
$ C, T2 Y# s; |* j- u4 N0 c编译应用程序时还必须启用
9 ]) ]# C0 \% T/ k6 [8 u调试。
$ K* [( }+ d6 l6 R; M/ Y! E U E% C; J( e
N9 W( ]8 M( b2 |3 a例如:# f, k; V* }3 R. i$ Z" J d
9 l% J% Q5 m3 B( O
<configuration># t1 X0 r$ e# D) I, ], G: L
<system.windows.forms jitDebugging="true" />
- z- d9 n; l& s7 C% v$ s# w4 z7 W</configuration>, P. V- i) K. U. {4 ?" k+ z, c- ?
`( j5 V1 t3 m% H' l6 ]启用 JIT 调试后,任何未经处理的异常& @+ [, E7 ]: J# s; Z
都将被发送到在此计算机上注册的 JIT 调试器,: K |$ @! B8 o7 @! C$ A! [
而不是由此对话框处理。
% d2 b- k o4 j
% ~3 S+ E; T- R4 o. s* t- a1 W |
|