|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
8 k4 g) D( z- [. E. `
6 l& @( l2 e" c8 a& Q) F+ |' k O, @; h# l( u
: i" a; Z% x6 Z$ L. a, @( V
/ ~6 |5 \, N8 E O更新版也是一样的,点save时就会出错。
) R9 ~& d- z! m
5 `& L2 k! }0 r' i9 n% I4 b操作系统:win10 x64和win8.1 x64都是一样的出错信息。
, a2 @( H3 r2 A* C: ~( V" t& U1 a! d
有关调用实时(JIT)调试而不是此对话框的详细信息,
0 K2 |5 T- z1 _8 P7 o5 g请参见此消息的结尾。/ `% W. K) f* e! {" ?1 P }
/ s9 w w+ U) k: y4 ]8 V
************** 异常文本 **************
4 g9 F6 E/ Y& CSystem.NullReferenceException: 未将对象引用设置到对象的实例。. F1 j0 O0 D7 u
在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n), V1 z: z# M; g
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
, K3 S- H. J& T1 l3 f, l \8 Z 在 System.Windows.Forms.Control.OnClick(EventArgs e)
1 y8 G9 H, |( P2 Q) H) r 在 System.Windows.Forms.Button.OnClick(EventArgs e)
) ~# J2 O9 ]7 m* l% k7 V0 | 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
: G( q: X: f$ D 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
5 ~! \, K5 q2 w+ P 在 System.Windows.Forms.Control.WndProc(Message& m)
( E* _+ @) h8 u) i( O( Q 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)# ~3 r/ X/ r4 Z$ |
在 System.Windows.Forms.Button.WndProc(Message& m)
9 S. O. K1 X: V- [6 r 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
5 C! J. Z1 Y, t 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)0 ]7 v( R9 ^! B5 w+ ^% N
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
# s( M p" h% ~* y* r
: x; j- E2 k& g$ v
, }3 ]* ?; I% F9 k' s- m************** 已加载的程序集 **************0 Z' Z5 O/ {0 M5 |; S9 u
mscorlib
/ f; }9 n9 }. V6 y/ o 程序集版本:4.0.0.0
! O, J& e! a$ o0 x; } Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
. h/ b. e: m% b( W" C 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
6 R) F* ?! p( b) w----------------------------------------
3 \/ ?% v1 L G2 _5 L. {Picture_Capture% h7 o. l' w- O( a3 O
程序集版本:1.0.0.07 k- S* V2 Q; E3 _2 y! Y; k# D
Win32 版本:1.0.0.0
7 v* U8 l& F1 L 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
# h5 x% E: B. _1 t) i' f----------------------------------------
% X0 q2 r& q0 {9 {: oMicrosoft.VisualBasic
$ G, w. T" v6 e/ w# i% [ 程序集版本:10.0.0.0) f5 v" n. U8 V/ T
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL
6 } Q, J4 V1 q" d" h 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
7 r3 L% P$ r C. Y----------------------------------------
& h( k/ j3 a& G. ?System# e0 f5 I. \" {! ^3 d9 R/ L+ K" Y* P& N
程序集版本:4.0.0.08 _7 o5 A# x* r+ F8 v
Win32 版本:4.0.30319.36350 built by: FX452RTMLDR
8 A) w+ n+ V( o8 k1 P9 c. L% h 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
* G" e9 v% w' h& ^5 g8 b/ X4 O----------------------------------------
' f, x1 m0 c& GSystem.Core
$ ^8 S- y* b0 W8 _ 程序集版本:4.0.0.03 t6 f; f* [: E) c0 M( O- r0 {
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR, o5 D" h8 Y/ d6 l. ]. Y/ Y, ?
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
/ f8 I9 k' v( H. T) J2 K9 j5 C----------------------------------------2 z. t! F7 r9 [" R. z, s# S
System.Windows.Forms% J* U, ?/ ?% L
程序集版本:4.0.0.0: F. j9 x `8 R4 K& h
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR% O$ W- O* c6 ~
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll. t5 ^: @3 @2 z5 _: {* x0 b
----------------------------------------
# o/ d* u& A( V( h/ [; tSystem.Drawing1 F* p& Y, G5 M) ]- q5 L) p' W* d
程序集版本:4.0.0.0
$ t7 N* t, Q: b! y" O& G) M Win32 版本:4.0.30319.36337 built by: FX452RTMLDR( c/ d8 Z' W6 ]4 Q
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
; E9 M2 ]. S4 T* F$ C5 U! b----------------------------------------
4 d% A4 d, X/ ISystem.Runtime.Remoting
& t6 c/ j& n# F 程序集版本:4.0.0.0
+ _ m. \ F- ?) b, k# K Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
* q: @" f/ I' w* E/ z$ J8 R 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll3 V5 P3 M7 @( H2 C9 T' s& ^
----------------------------------------
" P4 Y/ U4 {0 C8 |9 L f8 C* lSystem.Configuration2 X0 T) i9 U% y4 h) K9 H+ r. n
程序集版本:4.0.0.0+ f# A( x4 _+ ]+ O' a; j
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
5 w; u" y- p3 D4 \ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
. S! Y; U. F! z; \4 u F$ ~1 m----------------------------------------6 F5 l& r: q6 v5 g% q9 |
System.Xml6 n- B* X2 _- p, i2 V4 A$ U
程序集版本:4.0.0.0$ A- S; \9 m' v7 L
Win32 版本:4.0.30319.34281 built by: FX452RTMGDR# F& H* N1 W) l6 |! p
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll6 r3 b: D( [ Z7 Y6 B
----------------------------------------# u3 f8 p! X9 M0 L" ^$ r2 A
mscorlib.resources" ~, f8 G3 |: T2 n0 @9 S: Z
程序集版本:4.0.0.0$ L; G# a D, o; H* @8 s
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
% @4 ~. A: A4 {) }5 B 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll! i& o, ~* e' ?, R+ V; j, o
----------------------------------------
$ g/ l) m: H, a/ y# B, R3 e6 J5 lSystem.Windows.Forms.resources1 D! R; h. X+ w) c. D" ~2 D
程序集版本:4.0.0.0* ]$ r6 c" @ L! {: n4 ]
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR
b0 j9 n4 @6 R' H% q1 S" \ 基本代码: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
3 F- h( k3 o! T----------------------------------------
4 R8 {+ L9 U b$ z0 ~; C8 e5 Q$ Y- n1 y3 F& I
************** JIT 调试 **************( Y h( s7 B! `8 g( }
要启用实时(JIT)调试,# L6 A( t+ H* D3 {
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
! l3 H% c+ t! {" {, N2 hjitDebugging 值。( D" U; v9 q2 F$ c
编译应用程序时还必须启用
$ Y8 C! r, H% h6 O调试。& o* V1 q7 ]$ m7 r
, q3 ~0 ]" h5 m/ T
例如:
6 Q f& ] S2 o9 D+ ^+ u, w& `3 P/ p" p8 g4 J6 y
<configuration>. d0 H9 p0 \( ]; j% m
<system.windows.forms jitDebugging="true" />: h% v) w4 u" _: F2 K# G( U8 V
</configuration>' z8 \7 L- V5 w" B$ S
6 Q) N7 L5 }+ O. H. D: q9 u启用 JIT 调试后,任何未经处理的异常* e p" w; p7 x3 x0 Y4 P& k
都将被发送到在此计算机上注册的 JIT 调试器,
' ]2 ?1 x) K, k; y4 d: L而不是由此对话框处理。7 i9 H9 h! Z( |
5 W# D: o8 D6 K$ B5 z/ q/ L7 G5 [
^+ j5 a2 M: v) z |
|