|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
" A' W( `5 Q$ q2 d' S
+ E. S8 r$ t% B$ h8 n" U0 \0 R$ d. Q: D' [2 M& g& ~1 ~1 c1 |
# K. h7 m+ W7 }* c! _: n' ^. [: |3 M8 h2 x/ Y5 J$ h2 D/ T
更新版也是一样的,点save时就会出错。
2 k8 f V8 U z v" Z" h3 O* h+ G) B' K5 g
操作系统:win10 x64和win8.1 x64都是一样的出错信息。9 f+ p. Q* m/ G% ]% x2 O+ G( U% I
1 _: l2 }$ \/ y k6 o( G8 `
有关调用实时(JIT)调试而不是此对话框的详细信息,
Z$ N! W! ?- c0 J请参见此消息的结尾。
' p, ? U: Z0 E% F- f* L6 _0 k7 F6 W8 f! I: f4 W& Y" a
************** 异常文本 **************
( `: S" O D. T) D' T: t. S$ ASystem.NullReferenceException: 未将对象引用设置到对象的实例。
2 u' n& c3 \# }! w+ y d 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
) @+ c: a0 E. J 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)' N0 t" B) B9 R6 t
在 System.Windows.Forms.Control.OnClick(EventArgs e)
6 A8 g, [2 Z; H) m- v- X! y 在 System.Windows.Forms.Button.OnClick(EventArgs e)
9 s" V; w$ n X 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
+ M& X" t* I$ r- m# R8 D$ B3 } 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
! x \# Y' B$ u% P8 b 在 System.Windows.Forms.Control.WndProc(Message& m)
9 @/ W& _, S% X E& n& I9 \' Y 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)8 \+ T0 i* C% w& `9 a q6 ~
在 System.Windows.Forms.Button.WndProc(Message& m)
5 h* M* K& o' C& T# {3 k0 |- W 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m): N- D/ o3 C# {6 C1 h7 G; z2 m. V3 v1 h
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
; o# r0 x. R2 Y4 P) `6 V1 m0 r 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
V3 ^$ i/ Y# n8 P' C9 g) m8 F
5 {; N$ p* v: s5 I+ {. K3 ^8 N
P8 k- G6 ] T************** 已加载的程序集 **************
k* Q. @; ~/ ]; J7 q3 R+ W Qmscorlib* v$ x8 x4 G2 }9 b" B- O( [9 u/ a
程序集版本:4.0.0.0
+ Q6 t1 o, w Z, H Win32 版本:4.0.30319.34209 built by: FX452RTMGDR) M4 i' c2 Q0 ~. b5 D( ~/ c y5 D
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll) d3 E5 y% z5 @! V
----------------------------------------; k& A0 R2 W0 n4 L9 N
Picture_Capture0 T' s; [* _" T4 {) \
程序集版本:1.0.0.0
+ @& ]8 z4 R: \ Win32 版本:1.0.0.0
. ^/ N( w& {* R! d3 _/ \ 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe3 }# ]/ U: O5 _/ _1 z/ X$ t
----------------------------------------
- y7 ~: q1 W# b; ]Microsoft.VisualBasic% g$ y# q! g B0 V% z: t- t2 d. K
程序集版本:10.0.0.0: l Y% C8 ]4 O4 K% F
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL
% V" ]% x# S, N+ n' u- v1 h8 ? 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
: ]" x; b% C1 |----------------------------------------9 I w4 @* V) Z* P0 v* A
System9 H8 e" y ~9 ~
程序集版本:4.0.0.0
! Y4 v; H7 s# Q* [) ], [- O9 j Win32 版本:4.0.30319.36350 built by: FX452RTMLDR$ w/ o6 N, k" D9 N# ? {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll- X' Z$ |+ C2 Z- r: b8 h8 d1 [
----------------------------------------
8 ]$ y* }6 T# OSystem.Core
. J+ o( i) J. _3 v z4 T4 b 程序集版本:4.0.0.0
6 n$ {' |) X, h N( s2 J Win32 版本:4.0.30319.34209 built by: FX452RTMGDR* L( w. G/ K5 \9 v9 }
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
( v9 S( E( T$ Q1 \3 ^0 ~----------------------------------------
, ]: J$ i- G" N hSystem.Windows.Forms3 ?1 \; B+ n% [" I I
程序集版本:4.0.0.0
3 x3 ]- A: T# [( E0 h: ^5 p Win32 版本:4.0.30319.34250 built by: FX452RTMGDR
: o! i+ W/ Z; u1 w6 `: v# ]5 j 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll+ R' g' @2 \8 Z! r6 F2 w
----------------------------------------+ e1 s: a: L6 {: }" Q1 p8 ^7 g
System.Drawing3 e& {6 I' Y) ?! I% |( S8 ?
程序集版本:4.0.0.0% d$ F6 Q( Z' I3 F B
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR+ Q3 Y/ X3 R' Q' P, R: o# F
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
V9 G- P0 f2 W3 I9 N----------------------------------------
" b6 E) a9 v5 g( c- TSystem.Runtime.Remoting2 y% r3 w/ `& C5 @/ o8 a
程序集版本:4.0.0.0; J m- z/ m j4 [! P: _! c0 `& s
Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
. N* }- g) m6 P" g 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll( U9 C- c% r& D+ ]2 j
----------------------------------------
; r; |0 X- a* \6 PSystem.Configuration
3 h. o9 S1 `- C D4 I8 U1 o 程序集版本:4.0.0.03 F" n- k+ v* T) P2 v& n
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR9 ?# M( b$ e2 ?" Z4 f+ \2 Y; g
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" b# {1 N. u8 u2 n
----------------------------------------
. D7 q5 j! w( k0 Y8 J2 |System.Xml
$ [' A1 c# v0 g% y0 q" g' I 程序集版本:4.0.0.0
# V2 A2 c2 Q2 z! i8 w8 t' r% h# G6 ^ Win32 版本:4.0.30319.34281 built by: FX452RTMGDR$ E+ z0 b3 d8 `1 {
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll8 F" e6 Y7 j; f; f9 _ {
----------------------------------------
; K4 n1 x0 I1 [" R8 w; U0 ]mscorlib.resources
. N9 u" H$ R% ?, `3 O+ r4 W# }' j 程序集版本:4.0.0.0
. U, \$ n9 s* J, u# T; i% m Win32 版本:4.0.30319.34209 built by: FX452RTMGDR# O; N- f' j6 |) R
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll( @) ] r, Z- _' ?
----------------------------------------( t2 W* j) A" K. {' ~$ `: J- t- N, @2 X5 f
System.Windows.Forms.resources
6 X! E/ `: L) n, a/ q, K! x! G& z- j 程序集版本:4.0.0.0
2 O/ r3 S, i. j% A Win32 版本:4.0.30319.36213 built by: FX452RTMLDR: N! L. R% e( G0 H- q8 B/ e4 @
基本代码: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.dll4 i4 a# C3 K5 M( k4 ~; ~% E
----------------------------------------
" a# p+ i) Z8 N' p& o0 e4 L# l6 d
Z& }5 p" Y; Q************** JIT 调试 **************
, r- E' M) i$ @/ d B- Z9 h$ b要启用实时(JIT)调试,
5 f/ i& ?1 k. I) n该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
; y7 @) O! s1 v/ z% Q( j8 _4 ~0 a5 ZjitDebugging 值。$ b- ]! p: P) X" m
编译应用程序时还必须启用
0 e _ {# D# f! |调试。8 A" q- s& l' M- m0 `1 C
* J1 }. x4 y6 O' Y5 d
例如:
2 O5 U( o0 d, V8 I: f" I
3 D* X$ q# f5 V<configuration>
4 {4 ]9 s2 ?2 b7 a% \ <system.windows.forms jitDebugging="true" />+ x. C- b& O& N/ B/ |
</configuration>
8 C1 H$ P4 C, i
1 @1 N: Y# K) M8 x0 Z启用 JIT 调试后,任何未经处理的异常
3 n) ~+ h+ M8 D S9 v9 A; F6 l, M+ r都将被发送到在此计算机上注册的 JIT 调试器,0 d' ?* }2 ]' ? m
而不是由此对话框处理。
! y1 e3 g6 [; f% o+ Q
& u- n9 ~+ n# Z: p' }
: P+ v) L/ L, _* z: G- A5 o |
|