|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑 ( C! E* v& L' ]1 w
4 m- S* s; C0 Y7 s
9 B9 a+ O/ _: V2 D0 X3 q& w 3 ^/ r' V& d/ ~- a# c9 l
" _* \& j% b/ B( ?2 F% q
更新版也是一样的,点save时就会出错。, o8 q: W$ @. Z. o" t
P3 S! D( u, \1 [# B0 `/ Q
操作系统:win10 x64和win8.1 x64都是一样的出错信息。
Y* Y. O5 p \* l- B p3 c: E/ D F
3 r+ J% r/ V$ y7 g4 m* P9 ]有关调用实时(JIT)调试而不是此对话框的详细信息,
! g3 V* G" `( m8 C请参见此消息的结尾。/ p1 d+ b/ M. k- s
5 A. T$ h* r$ s4 l7 g) m1 J
************** 异常文本 **************7 C4 F/ w- ?* a2 P- [
System.NullReferenceException: 未将对象引用设置到对象的实例。5 z, S- g2 [' @$ ?
在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
% O) q3 E3 z+ b0 w2 B 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
' v% e3 C3 n8 K5 x7 F* P: ?( w 在 System.Windows.Forms.Control.OnClick(EventArgs e)
6 `- \( m( h1 \# r 在 System.Windows.Forms.Button.OnClick(EventArgs e)% V) `# E$ W/ l" [
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)8 z5 ^$ |' O4 [/ \( o
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)8 \7 B4 ]9 K' n9 i# c
在 System.Windows.Forms.Control.WndProc(Message& m)
9 ^: A- z3 j9 U4 ?" x9 E 在 System.Windows.Forms.ButtonBase.WndProc(Message& m): D3 Q, D% {3 a$ |
在 System.Windows.Forms.Button.WndProc(Message& m)
5 T1 v5 e6 `6 M" q7 e 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
" \5 J L( ~# O4 M 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
4 Y0 u6 H3 L6 G* O+ Q9 P 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
. ]% Y# f1 U8 M7 C
: G$ v- S7 p/ b( s2 F7 ]. P' z" R/ I* U: g
************** 已加载的程序集 **************
2 ~/ e$ t: b! z+ I8 }% P/ wmscorlib
2 ]& t+ P' O. K9 d; c/ x E. u3 Q$ b 程序集版本:4.0.0.0
0 C/ F( Q& T& u, u8 H4 Y& M" g Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
1 j/ e ^5 ]: u7 _3 } 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll" r9 \/ D4 @) ~1 A1 `* [' y
----------------------------------------$ Q/ S$ v# f+ G& Q, e- b
Picture_Capture
2 q1 R, e9 ^5 @- z* B+ d 程序集版本:1.0.0.0 H& ]9 Q' [+ f. p) w! ] A
Win32 版本:1.0.0.0
0 t3 X$ l" W: U8 u/ N3 C3 c 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
6 W: l7 ?" s0 i4 u% l----------------------------------------7 O+ Z6 K% t& F0 ]' c& ]6 ^
Microsoft.VisualBasic
: }& u$ ? N! d' W0 [1 M" @ 程序集版本:10.0.0.0
4 P8 N& w1 R; y* [+ X Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL. K# S$ x6 u5 p
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
- r( G9 ?$ k4 u5 |8 Z----------------------------------------
+ j9 Z j0 @4 i3 ]% J+ M/ F1 uSystem" p, F+ i- H* W' U3 @
程序集版本:4.0.0.0" k# \% R) A7 q+ ?, e& S& ~2 v' T
Win32 版本:4.0.30319.36350 built by: FX452RTMLDR9 i7 V8 `! @ I) o7 `2 @- o0 i& t3 d$ j
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll- @% x, M! x$ s
----------------------------------------
# z" @+ O2 j# r8 v! y6 ~( hSystem.Core( _5 H3 W$ P) ~# ?0 @. F, k& p
程序集版本:4.0.0.0
/ N _' ?# D- z, k3 e& Q Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
& S: e7 o# f0 D5 } 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
. S( P7 [/ i3 H1 w----------------------------------------4 i0 ], ~) t$ ]7 ]$ B+ t/ {: G
System.Windows.Forms" G" z) h4 z/ C3 \0 y3 _; x w3 \: M
程序集版本:4.0.0.09 d( q0 j5 D; e: p
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR6 A0 V- }* _4 f5 L* `1 {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll4 M, n* p! R8 c! F* ]5 @4 i8 H
----------------------------------------
* [: w! L0 c1 v% d0 Q9 ]6 b: |System.Drawing
. N6 \: _1 r- E! r 程序集版本:4.0.0.0
5 B6 J' b4 U+ @' O Win32 版本:4.0.30319.36337 built by: FX452RTMLDR$ \& `$ J4 k& j% ^8 H& i
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
/ X9 Q3 }% y% l9 I----------------------------------------9 p" W0 V7 D5 A8 F, r+ H
System.Runtime.Remoting: |4 o5 S* q# c8 ]# a; E
程序集版本:4.0.0.0! c( i: j1 t. {* m
Win32 版本:4.0.30319.34243 built by: FX452RTMGDR4 x4 U* u; x6 d1 h. e4 C7 Q
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll& ]: u: [' J& X# R& e
----------------------------------------
3 {- f H* ?8 G: \System.Configuration
* b) l7 F/ c, r7 S6 M 程序集版本:4.0.0.0, j6 s4 ?- [5 c) B, S7 P! R
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
# c" m6 I. z/ w/ K9 U9 u2 G+ l5 A0 w 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
3 S3 V8 m4 S/ q% U----------------------------------------
/ Q! K* y+ ~' |; v1 mSystem.Xml
( Q. d% O% R C" D$ b( V 程序集版本:4.0.0.0
/ H/ N( f/ C0 a! e7 a7 N Win32 版本:4.0.30319.34281 built by: FX452RTMGDR2 p$ M2 K: V7 d$ H+ E0 h, `! f
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll4 h+ |$ |, @3 K, H
----------------------------------------/ s* a( L- c* J5 R) o: M
mscorlib.resources4 t, ?, `; ]& ? K% F7 B
程序集版本:4.0.0.06 U J- P3 x, }8 \: `0 x
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
4 `+ i" Y1 D& d 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
" w/ [2 m- U- x) S9 d% I; G9 d8 ]6 [----------------------------------------
7 o `5 F6 K8 E4 r# u. `) U- F/ Z5 Z9 P" FSystem.Windows.Forms.resources1 a/ O! r4 v5 W) W0 V- B
程序集版本:4.0.0.0
3 E1 f8 p x; Y, a Win32 版本:4.0.30319.36213 built by: FX452RTMLDR
. X# q+ d4 k' u5 @6 L 基本代码: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" ]4 C1 }+ `3 o/ s
----------------------------------------
, x- A! v7 ~" }+ m, [7 e9 E, h& w2 F' o' ]; @- E5 g. w* r# e& f
************** JIT 调试 **************9 S3 n# G. Q4 f6 r* L
要启用实时(JIT)调试,+ O" ]1 t! F3 x2 p' b% o
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
7 R) T& I3 Z3 _4 ljitDebugging 值。6 s; {/ Y M" M7 z' b# z& H2 c
编译应用程序时还必须启用
- L3 f! ^& h& a* _" y- S调试。
8 U, S. L3 s& v) D) o+ j' y' A# U% K( \
例如:) k; L; o3 J& @
6 m5 T _4 N) z& P7 {1 g! L' _7 [<configuration>
' Y9 \4 y, [) a. y <system.windows.forms jitDebugging="true" />
! m9 d4 C( H+ b</configuration>+ ^' ~, o6 ^! e* `
% X$ x# m5 p% s2 D+ W启用 JIT 调试后,任何未经处理的异常
' @& p3 G( t8 d1 i都将被发送到在此计算机上注册的 JIT 调试器,
% B- j- @( s- s而不是由此对话框处理。) S9 c4 r3 U4 B
% Y' s% T- l( I$ ^2 G5 o$ |( p4 b
|
|