|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
6 \9 ~/ H+ b% i7 A# a8 U' k9 g- g; j5 p5 L' w2 X, C6 i
" Y. d- K9 i: K' ]5 ]2 D& Z
8 a6 G6 n- z2 y. M2 k( s
. i( _- i) X* \. A$ A" E. b更新版也是一样的,点save时就会出错。; j) v+ ]8 t1 A9 [
0 A( m" O6 L7 a1 f/ U操作系统:win10 x64和win8.1 x64都是一样的出错信息。
L {: T# _- ]+ r, g$ W+ c1 R# Z R1 N1 X; Y
有关调用实时(JIT)调试而不是此对话框的详细信息,# G& O$ B) y+ E& B6 q4 c6 f* @1 T
请参见此消息的结尾。
) e& B9 m" b/ D4 Q s( n5 H* j, x$ n7 G8 _+ l! K- z
************** 异常文本 **************/ F, T' L) _8 K9 f
System.NullReferenceException: 未将对象引用设置到对象的实例。
) C, k, {: Q9 y; R. g5 a 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
) q: m+ v" m) v. m- Y6 ] 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
# V t D6 v3 | Z m; ^/ C; W 在 System.Windows.Forms.Control.OnClick(EventArgs e)
" C a: l3 O3 h7 {* M2 f$ g 在 System.Windows.Forms.Button.OnClick(EventArgs e) r5 E5 E" x& O' m" D
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
4 k/ o9 ?* G0 F- f# Y. s4 ~ 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)8 E5 F Y9 O* W# \* T* j# M1 t; S
在 System.Windows.Forms.Control.WndProc(Message& m)
" g& z/ n t+ h( D 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
( J; t* n, R: S 在 System.Windows.Forms.Button.WndProc(Message& m)
/ V r2 w4 V$ m% T 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
: Q* F v( a* Y6 q 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
; h: ?6 |% r. @0 |( j) G+ x 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)' c: C6 x- o8 i3 b/ t) S
$ q# a4 n, F4 [- _7 q) d. e( v- }
- ^8 S0 D1 O, f W: U************** 已加载的程序集 **************
( u9 @& Y1 Q' C# G* |; M9 Wmscorlib6 L$ T4 g$ }) ?9 `, j
程序集版本:4.0.0.0: \3 m2 r7 N' T- X7 J, e
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR5 m# M7 n" E" X
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
* R% Q2 K9 D8 z% \6 Y6 I8 F- T0 C' b----------------------------------------9 n) F# J/ q' o: X6 p: D
Picture_Capture
0 ], a9 k- n( h- o& E# K/ P: S 程序集版本:1.0.0.0
z$ a; c8 ~; v- C Win32 版本:1.0.0.0
3 q0 U, i" h8 j! e0 w" J$ I; _ 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
5 S6 g& K5 v1 h5 X# d----------------------------------------" g* b' D. k' o, U; r( A5 T
Microsoft.VisualBasic
6 \0 f9 p9 ~2 ~/ p u5 k 程序集版本:10.0.0.0$ }5 c. P( u' m( v8 B
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL. A. d1 `$ v4 i2 q; v
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll- m9 U1 A+ R: N Z
----------------------------------------- a8 ~$ ^5 O( e7 y7 e
System0 J" `. M! K3 q' x
程序集版本:4.0.0.0
( R: r9 V4 L/ N! L7 B$ W+ K" F Win32 版本:4.0.30319.36350 built by: FX452RTMLDR8 j1 i) k5 j8 I4 e# t0 M) r' O
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll; l- G+ x# h0 C/ d% E
----------------------------------------
\# o4 s2 Y' S* u$ y5 lSystem.Core% U$ h6 Q% c) ?2 R1 p
程序集版本:4.0.0.0
% ?- t! m$ ~) C2 s7 r2 N* t% ~ Win32 版本:4.0.30319.34209 built by: FX452RTMGDR6 o9 }7 q( g: J& \' p) W
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll- W3 s' @0 C3 Q( X# [, t
----------------------------------------& U% ?$ w+ J: C# w5 F
System.Windows.Forms
; ~' S/ F- X, L5 M1 @, k 程序集版本:4.0.0.0
# j: @6 u1 F1 m# v3 p" n& n Win32 版本:4.0.30319.34250 built by: FX452RTMGDR2 u6 y1 l# F' s" d- _) X
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll! y) B, O0 \' N- f0 I( I3 J
----------------------------------------
' @% y: ?, h( N2 i% ~0 y+ VSystem.Drawing
' f! |, ?5 r P 程序集版本:4.0.0.0
) m o% ~. b4 G" t) ? Win32 版本:4.0.30319.36337 built by: FX452RTMLDR$ |! c3 B6 ?* i2 R
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
6 \& A0 U; n% v6 S4 K |----------------------------------------! D& \5 J# }" K
System.Runtime.Remoting
% |) f1 y" `9 T0 m8 c2 H* _ 程序集版本:4.0.0.0
5 K V- V, c# C* U9 C) Y Y Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
% ]+ R& T, e t% Y/ O* I2 z 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll' {3 I: A _& C3 p3 M" k
----------------------------------------
* x k3 O5 S5 A3 eSystem.Configuration; A/ o9 u2 q" o6 n3 P
程序集版本:4.0.0.0
/ L' N n- R7 v3 n2 @ Win32 版本:4.0.30319.34209 built by: FX452RTMGDR+ l# g8 K- `8 ^1 p; T& u
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll: S }8 R. a$ {4 i% J8 C0 J
----------------------------------------
- }8 {4 k, i$ Q8 C% VSystem.Xml, S0 |: l+ \- n
程序集版本:4.0.0.0
; c, m% L& J% F4 p) G9 q8 ]& L Win32 版本:4.0.30319.34281 built by: FX452RTMGDR
$ P% l8 b# n* ~. E8 v( A 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll% C, F3 ]/ J! o+ [
----------------------------------------
" x! b6 J5 b. M( Pmscorlib.resources6 m X G! ]7 v; w" |$ o- U. H
程序集版本:4.0.0.0
8 N d& D2 O2 P& _8 X# H" n/ u5 F Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
$ Z4 G. v* ^1 I; r; J$ @: J4 w 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll9 v; F5 D1 t: v4 y: R$ P# i
----------------------------------------$ F, J* F' W+ E# d: m
System.Windows.Forms.resources- f3 C: S' w. C) k0 O
程序集版本:4.0.0.0/ E8 t; O0 V# x% I4 I) L' D
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR1 E- Z# r5 M: B' b0 x6 |
基本代码: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; G3 ^' c0 g- _' q" e& I1 K5 G
----------------------------------------) S7 O! c; v. H2 A; d4 i
; v( @; ^$ ~* V) U) [, \
************** JIT 调试 **************7 E, H% q7 J+ g- H
要启用实时(JIT)调试,
& Z$ |4 V* E$ r6 V" \该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置4 L5 Q" k' x) M9 l) t$ B
jitDebugging 值。
; r. G* U& a$ O0 E$ W/ V编译应用程序时还必须启用! v0 M4 {* c. ~8 r o& v
调试。
+ D7 l2 Z i8 H0 H; x7 ~" f1 ?! m. o' l1 [: n% `3 X C& {
例如:* e" ` F0 W' J: J* g7 [) c8 R
' ?, C8 v! w2 c, Q* g<configuration>
# t- Q0 J8 C* }, E <system.windows.forms jitDebugging="true" />
7 j+ D' z; z& N+ ^ v: o4 o& g) c2 H</configuration>
- K' P+ R7 B2 J+ }# V; a) z
5 ]3 c9 q( {- V. n N* [" S. w启用 JIT 调试后,任何未经处理的异常5 U: g4 x) _9 J1 Y
都将被发送到在此计算机上注册的 JIT 调试器,' v3 f% H' B/ I
而不是由此对话框处理。) _ w: F$ h% M- t( }5 y
0 P. e5 ~4 B. z+ Q! N
) `) g6 K* Y; V0 b/ z! S, p+ W, C |
|