|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
& T# q" N/ C: _ i2 ?
5 O6 Y& n: F. f$ h- B6 L. A
" q# n9 i) }$ D. o A/ j* W# U% H
1 m% ?; b, W) J4 w5 T3 u( M: `& G' M. J/ s; P
更新版也是一样的,点save时就会出错。" u5 a3 S& `- U" a
6 R. U2 [ e# V( r操作系统:win10 x64和win8.1 x64都是一样的出错信息。
' Q8 n, W/ k: Q- S5 \6 s5 D/ k+ Q' ^. f. `8 Y
有关调用实时(JIT)调试而不是此对话框的详细信息,
) R& _6 [2 G# P7 t+ ]0 U请参见此消息的结尾。
% T* @4 S5 T7 J5 {; T$ G
% q3 C. q+ b3 ?- a************** 异常文本 **************& P7 [$ s7 k4 g6 I
System.NullReferenceException: 未将对象引用设置到对象的实例。
f; |1 }" n! o. h" a# p 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
. _ h- \6 L$ X/ R% S, h; N' B& N9 g 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e), u W4 ?: Y: A# c) L" m
在 System.Windows.Forms.Control.OnClick(EventArgs e)8 b, ]. N& U' \
在 System.Windows.Forms.Button.OnClick(EventArgs e)
. R* C/ _2 M+ T, g 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent), D5 r7 e2 S' w' ?/ k/ C4 [( @
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)) D" _1 T/ H* ]& p8 K3 z
在 System.Windows.Forms.Control.WndProc(Message& m)
3 C- {+ k$ J; h% l; G 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
4 S z8 v" j* c2 a1 M6 ]/ U 在 System.Windows.Forms.Button.WndProc(Message& m)5 a3 t: Z2 s& Y
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
2 V7 I1 z- N/ [5 P4 H f' ? 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
( P9 N9 x$ b( ~) Q! r 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam), [1 Y+ v/ f' l; n
0 s$ B) ]' c6 @) s) I4 d
% D$ E; m# ^5 L! x$ v3 X7 `************** 已加载的程序集 **************
7 W+ j+ w* h1 }6 emscorlib
& J. E8 w" R0 Y1 ~ 程序集版本:4.0.0.0& @3 t1 O( w1 ]4 T" U, f
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
; b( B4 k/ _0 H 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
2 X2 }. e* ^1 N4 f0 k0 A0 C. P----------------------------------------
( A( O% P; W3 m! cPicture_Capture1 i9 n* [$ X9 E8 E0 n! o
程序集版本:1.0.0.0/ T% J3 g1 m$ E5 N
Win32 版本:1.0.0.0
0 C! v( S7 X# u* M6 N 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
7 Y4 b _6 |! U) b, r: r0 B----------------------------------------, d5 z, k3 t, Y" @5 w
Microsoft.VisualBasic4 g, y' \, }+ Y4 I
程序集版本:10.0.0.0
3 i3 F) e! ~9 T Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL
! j% |& Y: r5 J+ J& h5 F2 ?" Z5 A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll" d) G& g' J# J. q3 u: O. R0 W7 }
----------------------------------------1 |& r" J2 f' R
System. f8 O0 w$ A* J
程序集版本:4.0.0.0
6 r; A4 O6 S! L4 R+ ` Win32 版本:4.0.30319.36350 built by: FX452RTMLDR& E9 i( V5 ^( r& Z
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
9 W! X/ r, u$ V* r/ Z) S----------------------------------------6 |) \# i% A6 I0 l9 S8 a1 R) v9 D
System.Core! [$ o9 Z4 @* ^0 M1 p
程序集版本:4.0.0.01 y3 f, F J! a6 K1 N
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR) s5 [; c- i2 d1 `3 ]) D/ }
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
/ i9 _: f/ Q% r& \4 I+ F% k5 F z# r0 c----------------------------------------* h# ^) X+ |% d* ~" t, _
System.Windows.Forms
6 V2 F, U" @) M+ l5 E 程序集版本:4.0.0.09 S5 h! M+ Z1 N i& C$ k/ T
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR& A+ ?' w- m% }) W! `/ [
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
9 R. f/ j3 B' a/ ~----------------------------------------6 u. {, n. T0 E
System.Drawing) L+ n) t0 {9 @) V
程序集版本:4.0.0.0
" x; s- Z# I+ ~! s f- |! }6 N* g- o9 G Win32 版本:4.0.30319.36337 built by: FX452RTMLDR) r' j/ j! p5 F! c$ v& m* f6 H7 ~
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
; M7 P, {& `) E3 w, D1 ~9 J----------------------------------------
2 j9 z- f1 K" } }5 a( u' ^System.Runtime.Remoting
, t& p+ \) f7 z& u 程序集版本:4.0.0.0
" X. s3 n' P t2 d% D( z6 t Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
8 Q A( T. b5 o N 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll4 H5 S3 ^, f# p3 \
----------------------------------------
4 C/ T+ i- B1 l5 r# Q# @. @System.Configuration' K! N. E8 t1 ]% D7 ^
程序集版本:4.0.0.0
8 l% X+ \8 R+ A1 ]. O. A, | Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
1 V6 x0 z/ a% [3 p* e9 @ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
/ I( c& B x% @1 |4 o1 U----------------------------------------
9 Q9 k; n. J, G* fSystem.Xml( V% K* Y( c" M1 C) D* C. d& f
程序集版本:4.0.0.04 @$ g" v0 ~! L. I$ L6 I, a
Win32 版本:4.0.30319.34281 built by: FX452RTMGDR* J; X+ t* C2 }7 z/ Q% L& E4 o! T
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
" [7 }! }9 l E7 o0 r! ~8 b----------------------------------------
9 _: t' q8 r1 |5 xmscorlib.resources
* t' J; L- T- m% D" U. U 程序集版本:4.0.0.0
q; |- s g" z R( i! ~) _* d Win32 版本:4.0.30319.34209 built by: FX452RTMGDR( A# S, G% [! |/ E4 E
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
: `: N9 c" E9 E# \5 ^----------------------------------------
! m. `! r6 ~( g/ eSystem.Windows.Forms.resources1 r) ^" }# u2 T' n6 N9 `8 n
程序集版本:4.0.0.0
/ p& q: F }# Q$ m Win32 版本:4.0.30319.36213 built by: FX452RTMLDR+ b8 _. C+ L, y3 ?
基本代码: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.dll0 h6 q/ x' y3 U k0 o3 u1 E G/ A* ?
----------------------------------------
6 s* y1 n: M0 ~7 b
# Y9 d3 Y; H' |4 O3 O************** JIT 调试 **************
- m0 ?) _7 F/ Y要启用实时(JIT)调试,% N& w* F6 o d5 Q% D( [* t
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置9 G. ?: D) I# r6 z2 E7 u0 Z' U0 ^
jitDebugging 值。
! g" s3 [$ v& W编译应用程序时还必须启用
5 a3 ^7 _' @+ p9 h j7 q: k调试。5 L( J+ v9 n: J. l5 w: a
( |& c+ r: x/ h! M3 I
例如:! W! K. i: a/ b" A5 ]0 }7 `7 }
- O( t; W* ^& p2 ?7 W<configuration>
& f. z" U: L: F <system.windows.forms jitDebugging="true" />4 y9 E" ~1 ]( f5 @( Y8 J/ g+ f; p
</configuration>
$ w) [! Q' N! ~ S& ~! s7 l
) H" C3 j: W# F: W+ ~/ z启用 JIT 调试后,任何未经处理的异常, V: V' q1 _( j3 ]. l' f) D
都将被发送到在此计算机上注册的 JIT 调试器,( ?3 |( ~% V4 ~7 C: X, X
而不是由此对话框处理。
- p! r* r& T; q8 ~ Z, F0 x. s! V3 J& a9 a: y1 G& n* V1 ]1 d: \3 v; h6 s
% I7 u0 e+ _" z/ H; |
|
|