|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
2 m1 z2 V) h( o. D4 t' o- i& `! w; T2 @- ]3 r* O7 X8 k6 @
3 R- t( |4 e$ K & S" B3 n- ^2 Z6 [6 g9 G
# R' s2 u: v- j更新版也是一样的,点save时就会出错。; x7 L% Q% x; F8 D3 I
0 K i: q* K* D3 m- V操作系统:win10 x64和win8.1 x64都是一样的出错信息。
- O8 I; V8 v g0 N- x$ L9 q. e' D7 x9 C- ?
有关调用实时(JIT)调试而不是此对话框的详细信息,+ q6 l0 v. w5 ^! {$ R# T
请参见此消息的结尾。 a) v' E7 h& u- X- q0 [% r
# u, o. e; T8 ?. n$ \, S1 y8 F
************** 异常文本 **************
3 f5 [+ H6 w* n- _' x$ ySystem.NullReferenceException: 未将对象引用设置到对象的实例。! L' \/ E" B" c# a& c5 j
在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
8 ~( B, ~! u1 k$ K) p7 w, f 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)' U1 c5 {7 \$ W' E
在 System.Windows.Forms.Control.OnClick(EventArgs e)
# [' l- p0 a3 P- z! p 在 System.Windows.Forms.Button.OnClick(EventArgs e)% c* O* z% i& g2 D+ d
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
! o$ [- P9 i' c9 Z/ C( q 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)6 B" K4 R8 k* }% T1 x
在 System.Windows.Forms.Control.WndProc(Message& m)
m% Q& V n1 b* y0 v9 I9 p A 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
( L. v) d$ M9 j, @5 a 在 System.Windows.Forms.Button.WndProc(Message& m)
4 V$ W) z+ ^* c7 G# o- c# v 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
3 N3 M) O( D9 m% E 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m); J0 H% D! P, N% i! l
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
5 C! p) @+ [9 ]6 f; U
p4 t1 s) H$ O ?
! A; I4 T" J1 F" h: m- d************** 已加载的程序集 **************! g: m6 R0 E+ O! E- a
mscorlib, U& ^3 I% t( l0 V$ h* G6 B1 y! q
程序集版本:4.0.0.0
4 b, O/ C& [+ `# } Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
: [: i' B5 _2 G: v" v$ b s8 | 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll0 k. A) B4 D1 ?- o
----------------------------------------) T& m9 G& k4 Z
Picture_Capture
4 W2 r+ N1 K2 U, |' J3 N 程序集版本:1.0.0.0
y$ j; ?: V/ Q5 v* E Win32 版本:1.0.0.0) w1 V d: k, r( Z7 S
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
% k/ h% g" Q. t, j9 S----------------------------------------$ u- ]) t/ E* g' m. y
Microsoft.VisualBasic+ E, N8 n0 D8 V ~- L; D* ]
程序集版本:10.0.0.01 t- ~' C! Q: a/ U1 L" U" [9 L
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL a: E' S. R; K
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll) I I d: p; P/ W. H
----------------------------------------
/ Q7 ?0 S3 t0 A! cSystem
; C j# R" ]) l7 G 程序集版本:4.0.0.08 p& B9 a' C7 Z* \. u& w: R
Win32 版本:4.0.30319.36350 built by: FX452RTMLDR
5 K) {: k6 r- o 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
" W, }3 A0 f& d( l----------------------------------------) p/ n! V) d f' }1 g
System.Core
f5 j0 ]0 }- N4 u; \7 Y 程序集版本:4.0.0.0
$ F+ ~7 t# w' | Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
" A5 N, G/ z9 F8 s; m: ? 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll4 X, ^7 N' ?* F, M0 P- L
----------------------------------------
& B# `1 k( Z1 E& NSystem.Windows.Forms
# \' A+ }! t/ @6 W$ p2 x' n: y 程序集版本:4.0.0.0/ O7 c1 w: [" j4 S1 ]2 q& u
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR
! |) b. R. }& q0 h( r5 }. H 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll8 [$ B* J% l' L- W& a
----------------------------------------
' z0 |, D( Y/ gSystem.Drawing) a! J; g& _+ R9 ~- V: m( p
程序集版本:4.0.0.0" [, c: C- I$ `2 A7 z b
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR
4 i3 V. Q9 H7 ?, ^/ K% C6 ^ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" g. _2 O- }4 B2 X
----------------------------------------
" A8 B& G9 b; l' T( CSystem.Runtime.Remoting
# h% q; k6 j, p% C: p 程序集版本:4.0.0.0# ~3 J3 S1 g4 P6 V9 [9 a
Win32 版本:4.0.30319.34243 built by: FX452RTMGDR7 a& ~' `% y2 I2 f6 t* d; @
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
3 S% z2 B6 p* p( |$ \----------------------------------------+ r3 E+ P, L4 x
System.Configuration
0 O- c$ B( w1 M J' W( H 程序集版本:4.0.0.0
) F1 a7 m; R$ v& U# F3 N Win32 版本:4.0.30319.34209 built by: FX452RTMGDR0 d) t x$ c7 P7 [! `$ P
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll* Y4 B0 A& A- t3 N5 A
----------------------------------------
5 c3 h; d% {7 x+ { RSystem.Xml
% ?) Y+ P! N2 {/ e7 L 程序集版本:4.0.0.0
n+ Q B% l6 N2 Z' O* o Win32 版本:4.0.30319.34281 built by: FX452RTMGDR
" S6 q1 y# S) p3 m" C8 q 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
t. p2 G, M/ b8 U Y----------------------------------------' ]# m' z8 z) g: C& t% U
mscorlib.resources
- f7 D9 M) Z% E' B$ ^ 程序集版本:4.0.0.0# p" g, x* Z$ e1 }# D* L
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
; ?0 r3 ^$ f; ~. A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
& C' D& T' J' k# ^----------------------------------------
/ O3 g- w I2 ?9 G* w. wSystem.Windows.Forms.resources
* |) s7 j u3 X 程序集版本:4.0.0.0
) n3 C1 p( j4 n" Y+ [1 L- G5 s! m* G% m5 ^ Win32 版本:4.0.30319.36213 built by: FX452RTMLDR
4 ?0 z+ {( J: t/ Q4 E% @ 基本代码: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.dll5 X! g: \" h( S
----------------------------------------
9 [* F a( V* e Y3 x+ I
0 h0 ? N: [0 R" x2 k************** JIT 调试 **************
$ L( Q0 A! x' G! F9 H要启用实时(JIT)调试,' i2 Q: ]# P6 n. ?
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
/ H2 A# {+ @! S% Z0 H! tjitDebugging 值。: ^) a) k3 E8 n! V3 `! j- C
编译应用程序时还必须启用
. A6 y8 |7 R7 @调试。+ j7 _4 ]$ P9 ]/ |! y3 _! G) f
4 {% `; C4 a. @- k4 l例如:
1 E) F& r) i3 ~3 ?* @: g Z
& g4 s7 s6 \# |% \ O' E6 u<configuration>
, d9 Q. b1 c. Z) V8 v <system.windows.forms jitDebugging="true" />
, d) B7 @0 k4 R</configuration>( k! e* ]/ i' t; @
* e, Z" L- ?# p* i6 P& L3 c9 ]& a启用 JIT 调试后,任何未经处理的异常
/ ^5 B' J5 h4 H: m都将被发送到在此计算机上注册的 JIT 调试器,) S. P1 q. U. L4 b3 [
而不是由此对话框处理。) c* g, y2 X: q0 P
7 \7 z9 \& }1 g+ e7 Y% _
& G0 A- G; f; Z6 c3 y |
|