|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑 3 w# p7 T j$ L! l" c% X& a
! H5 O7 L- f& \. H- t7 ~" D4 P% s
$ X- U3 S/ m7 K9 v2 f# E
' u0 V: p8 p! X' a2 S7 X `9 Y. j: }6 a) Q- W9 F
更新版也是一样的,点save时就会出错。
4 z" u& E- x- a. {; ~5 V7 Z( J' t7 A' p
操作系统:win10 x64和win8.1 x64都是一样的出错信息。2 ~1 w/ } ]1 r- D% `; L0 W4 r' ]4 s
) L( W. k1 Z8 u' _2 s
有关调用实时(JIT)调试而不是此对话框的详细信息,
1 L* V# ~) P7 R" O6 Z请参见此消息的结尾。% ?9 }4 M9 ~/ j6 _7 [6 Y( X
E1 l. R3 u( k- u$ e************** 异常文本 **************0 I; {8 c/ V `( [
System.NullReferenceException: 未将对象引用设置到对象的实例。" |: j; A7 s$ b) E$ w* n# ~
在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
7 b# y1 T! [% i( u& x, Q# j 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
0 J& |+ F! g U6 S4 `+ d 在 System.Windows.Forms.Control.OnClick(EventArgs e) A) G1 f8 p: t* l" b
在 System.Windows.Forms.Button.OnClick(EventArgs e)
$ P N$ a) ~" Y: D: Q. G 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)$ _8 Q' \8 ^7 f. h4 i9 M5 q3 [
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)0 t1 o+ b+ S8 o
在 System.Windows.Forms.Control.WndProc(Message& m). l0 v! Q% n2 m _% k8 w
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
. w3 i8 K* R2 n% F1 h 在 System.Windows.Forms.Button.WndProc(Message& m)2 m7 P6 |4 _6 ~ o/ J
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
" x! ?3 M, [' b, `3 E4 ] 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
* F$ r/ V4 c, Z 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)& d, i8 j# j3 M3 z5 N" f9 z' p: B
. S* h/ }' f4 T" D3 W0 b5 J% b: h. [& M$ K y# J
************** 已加载的程序集 **************3 [7 u0 X6 S: S, f
mscorlib) z; c, u& t4 u o+ Y% s1 r
程序集版本:4.0.0.0
! W% y8 q- q! _1 x3 Y Win32 版本:4.0.30319.34209 built by: FX452RTMGDR9 P# r4 L# z# {7 ~; z7 ]' D9 E$ F
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll; _0 l- X% ]8 j0 u1 J
----------------------------------------
6 l$ ~! D! O9 R- [Picture_Capture. x, @& O$ N' m# _, _" i) m, m9 ]
程序集版本:1.0.0.03 e5 ~2 r8 b9 m3 Z! r( x: f
Win32 版本:1.0.0.0
3 {$ ^5 x) Q* Z B, J 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
/ j+ a' Y7 b" \1 s: E; _& o----------------------------------------, q h- O: z5 L& g8 A/ A
Microsoft.VisualBasic
$ ?: O) Y5 h8 U* R: J, _8 d 程序集版本:10.0.0.0; K: O5 e. u, @6 A. L2 U% D
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL
+ x2 Q5 Y0 z2 T8 P- [7 q 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll( l1 u9 P- i) e- O0 o7 V
----------------------------------------6 v0 g( k9 l* ^* H9 P
System
' I+ K; u- y* w }: K 程序集版本:4.0.0.0
: J% R5 i) g) x7 Q2 \ Win32 版本:4.0.30319.36350 built by: FX452RTMLDR+ i L1 T$ a% s4 Z h1 G- c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll B2 l( `* ]2 T. l, J
----------------------------------------
. i6 h3 }; U6 _3 W0 ESystem.Core" G8 z8 L% S( u5 d/ _) j; T
程序集版本:4.0.0.0
" ^! n! _, [: U2 M# v Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
, d; r8 n9 T& f* i% B& u 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
, w8 T$ `$ Y. `, t; q- W# n----------------------------------------
& ~, c- o; p: g B8 J( l" H; tSystem.Windows.Forms
" {) G8 P% x" Y2 Q 程序集版本:4.0.0.0
4 i% H/ F/ a* J# Z2 U5 b4 t& k ^$ k Win32 版本:4.0.30319.34250 built by: FX452RTMGDR4 Q2 p( \9 L2 y5 f! U7 O
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
$ ~, i' B* S# O& e9 f( u: k ~----------------------------------------6 a7 h: Q. _8 y) X3 a) N
System.Drawing* r; \! p% e; q$ m3 H( C
程序集版本:4.0.0.00 k2 s, ?3 r; Z" B3 a% ~
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR- ~4 j4 [3 P9 X
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
9 ~; b( R% a& a0 O2 J----------------------------------------; t0 f6 B. r6 R' h" h, ?$ e
System.Runtime.Remoting
* F" J! O+ B& H 程序集版本:4.0.0.0
% p5 [1 E9 E) l+ K( L3 W Win32 版本:4.0.30319.34243 built by: FX452RTMGDR& W) l( a9 ?3 L9 Y1 j
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll) p7 T* H0 `3 {& N
----------------------------------------3 @0 I' L: l4 ?2 x
System.Configuration
, Q g4 E& U! |4 Y9 _- i 程序集版本:4.0.0.0" x" Q" b8 b: v' T$ s7 f4 r" E
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
1 h* c! o- P- x Y9 j! A3 v$ L2 Z& S 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll, O5 s4 |8 V+ X7 P. U- n
----------------------------------------
5 W+ ]# J; B: y1 |5 oSystem.Xml
: T4 U% ~* h/ @1 r7 P3 \ 程序集版本:4.0.0.0
. g. Q1 b7 ]/ y* a- M Win32 版本:4.0.30319.34281 built by: FX452RTMGDR
; E9 K& h' u; j: ^+ z1 A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
: z1 M4 @& W6 O: G- { T+ K2 p$ J0 M----------------------------------------
9 S% r" I! W0 u& Vmscorlib.resources& i1 ]; E" L; b3 @; e5 ?4 [* G
程序集版本:4.0.0.0
1 v5 t' r- {3 ] Win32 版本:4.0.30319.34209 built by: FX452RTMGDR+ `# s+ P, z6 G4 W3 [
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll: h. g% e" E& j' _4 h
----------------------------------------
! M+ Q: m4 w7 b. s1 l2 CSystem.Windows.Forms.resources
) g* e! j9 i3 ]- X6 L 程序集版本:4.0.0.0. t& ]9 M- R. W/ F' v
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR F7 [1 R6 p% ?# |
基本代码: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& ^; ~* S9 V# J) N
----------------------------------------& U7 j1 |) A' J3 D! |! N4 }+ ^8 e
% w; ~6 _2 l) S' V8 C************** JIT 调试 **************
, h7 Y# K5 s1 ^9 B j+ Q. [8 f, P6 v$ _要启用实时(JIT)调试,
* r$ L8 p1 J9 y! l, N3 R该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
2 q1 A! S/ L. c& YjitDebugging 值。8 j, {2 C r7 \0 ]
编译应用程序时还必须启用
/ }2 Z |& @" H4 [调试。 n, ?5 j/ r0 O5 q& M2 |
& A N/ Y: o, l, W
例如:% T0 W S9 p8 h+ W0 H" r& I) }
6 Y" K3 q$ o7 v+ t8 O4 [+ `<configuration>( z9 Q. {/ x& ?! y8 e v
<system.windows.forms jitDebugging="true" />
( E: I q. \& a) J</configuration> S2 L2 r) x1 @) n% Z% Q9 N6 y- g
/ U( y2 ?6 L4 S启用 JIT 调试后,任何未经处理的异常4 `3 c! l) S5 p0 V6 X! A# h( F' ~
都将被发送到在此计算机上注册的 JIT 调试器,. ^, E5 q5 K7 v1 {
而不是由此对话框处理。
! ~0 ]& P9 I- P* }- J5 m8 h- f/ Q1 u( |+ B5 C) k
# I# h" y+ A- p1 P7 U/ g
|
|