|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
1 Z2 n8 _* ] @2 n4 v% V: F- W2 ^
' j$ L1 q4 x- w9 V; j5 c3 K. r' I7 M* o* Q+ @$ e
0 U) z3 U& G0 Q, S0 z4 g6 j- L$ u J; @: W# {/ [% y) W' P
更新版也是一样的,点save时就会出错。
7 b! ?0 c. e' t4 d: P1 d+ k6 \
5 d% c2 ?+ @7 i) o* S6 c操作系统:win10 x64和win8.1 x64都是一样的出错信息。
5 u- |9 B% G* Z5 w0 z% n; T: @" U; l5 M% v" s- G. F% n! m
有关调用实时(JIT)调试而不是此对话框的详细信息,
( V+ b% Y3 u8 t- M: _/ `$ p请参见此消息的结尾。; Z* n) Z" E# c" ?# R w
( f0 U( K i q$ O6 t
************** 异常文本 **************2 d! D+ S) u8 a
System.NullReferenceException: 未将对象引用设置到对象的实例。
) F& e' x5 m+ Z1 G4 r 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)' V- x" v5 T2 v& M: w7 n
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
Y" G9 `: ~6 ~* c# N Q: } 在 System.Windows.Forms.Control.OnClick(EventArgs e)
4 o, s! {' [6 ]# V# Y( F 在 System.Windows.Forms.Button.OnClick(EventArgs e)! p$ t4 i- Y8 _9 U" d* f' G2 {
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
3 Z. d8 F8 H- E. H4 P. { u 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
" S0 n9 B9 s4 M6 l' H6 T0 N 在 System.Windows.Forms.Control.WndProc(Message& m)% G u1 g* ]+ p. L6 M' R& z
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)/ Q$ Q0 X3 u2 | }/ V0 O
在 System.Windows.Forms.Button.WndProc(Message& m)
7 I8 G. D( m* v0 F8 t 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
% p& B: A* B% H: F& k6 M 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
* j4 l* [0 H3 P& ` 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
( U0 h0 @% [0 O$ s
3 X3 S1 m. u4 ^1 k2 z9 \5 R
$ M& P" s; U) v, |* V( n************** 已加载的程序集 **************
8 `* _; b! y- o1 ]0 \- Imscorlib8 g! _* f% |' D, s5 L5 W* k# z
程序集版本:4.0.0.0
. e4 J) V+ W1 L# n0 G( G Win32 版本:4.0.30319.34209 built by: FX452RTMGDR) R9 D f M* I
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
( V( N1 v. I, T( G' \# |. a% \# M& v----------------------------------------6 {% }; S/ _: h$ }1 N W! l' B2 J
Picture_Capture0 ~% [# }8 R' s6 w4 N3 R
程序集版本:1.0.0.0
7 z0 O! n$ U! d' B: P Win32 版本:1.0.0.0
6 z0 Z+ E% @4 Y* z 基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
3 e& ~2 o! M. A, v----------------------------------------$ z2 [$ w7 o" {) V! M
Microsoft.VisualBasic: y& y3 W+ }7 b% O% G
程序集版本:10.0.0.0
' b) O9 Y' J. |% C Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL! ~% P; X- t+ ^
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
6 f* v0 _; H- a3 G----------------------------------------
4 o, ^7 w: @4 R2 V3 l7 wSystem. L% A' H& p0 T: l1 |
程序集版本:4.0.0.0
+ O0 a g9 z: m0 j8 C5 S. l9 ^ I0 x Win32 版本:4.0.30319.36350 built by: FX452RTMLDR, ?0 {, X1 c l& b
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll( ]) [0 x5 R- J9 v/ A" e. y* b+ H
----------------------------------------4 e0 z4 G5 {- e7 k
System.Core
: E; P9 @. X/ |) j" E c 程序集版本:4.0.0.0
7 z3 J6 `% M% s) ^- o1 x$ u0 m( l Win32 版本:4.0.30319.34209 built by: FX452RTMGDR6 i9 a4 c- g# V' b) p, L
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
9 P! w3 F. {. u- ^- E+ t* T$ y----------------------------------------, i, B/ u5 a f) @
System.Windows.Forms
3 W( m: r6 _" K) p0 e, T7 C9 Z* M 程序集版本:4.0.0.0
6 z- U# ?5 O) w6 A3 C- e! D% H4 z Win32 版本:4.0.30319.34250 built by: FX452RTMGDR2 [: h6 U# _* [" Y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll4 o) E) ~' N5 ~7 ^6 b
----------------------------------------; F4 L' o8 g7 Q# D
System.Drawing. c4 {' V; ]7 Q7 p; B9 T
程序集版本:4.0.0.03 T) c! v' U5 q3 z. M
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR
0 j8 X6 t- o" Y" b$ Q% M% U# L! ~ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
* l/ R8 G; {1 y----------------------------------------
) d9 z/ ^+ L* n& N% `System.Runtime.Remoting
* F; o' U0 j1 O0 G- u; z" w 程序集版本:4.0.0.0% d0 w% ]2 L o7 V+ J- `5 _2 Z# l
Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
! f f6 w; ?; B7 @8 `1 u 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
! Y4 d3 I O/ l, I% i9 ^0 V4 |2 c----------------------------------------
7 r, g& A/ n& W5 }- K% d" F1 ~ V- bSystem.Configuration* I; h5 K4 f9 R. r. D
程序集版本:4.0.0.0
6 f. y! A; G- V* Z2 } Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
3 w1 o2 z7 m( D$ t! y Q 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll: W& m" A2 t) V& Y
----------------------------------------0 ^3 ~9 F$ I6 Z' ~
System.Xml+ r' D$ u9 n/ j) a1 a* f, O3 H
程序集版本:4.0.0.0
7 W% }" j* O! l% U% o Win32 版本:4.0.30319.34281 built by: FX452RTMGDR
: A% h4 R( j; e2 r 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll4 r2 r$ C0 u( m& k# i0 D& `. {7 y \
----------------------------------------
/ Z9 d3 f5 W [+ ~$ X* @- T# ymscorlib.resources: l, r" V$ V* ~1 U
程序集版本:4.0.0.0
. E( B. I" k( R" E+ d! Z* ]5 f8 n9 l Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
: O" a6 y" l) R! D 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
( R% {/ y( p1 o. ^----------------------------------------
9 U B* e& ~- @! V; pSystem.Windows.Forms.resources4 H! |2 a% H, @( N, P/ |+ V/ W
程序集版本:4.0.0.02 l4 @$ Q1 z0 U' V0 O. u
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR
% w$ ^0 R# U6 I d- h+ n 基本代码: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
- z4 E7 T0 M1 H% u( X----------------------------------------4 o2 U: }9 P. X* `/ r
& E3 {8 \* `" x) m( ^, K. m3 `************** JIT 调试 **************4 c4 O( s0 s% A0 Y* C. _$ ^) B5 |) r
要启用实时(JIT)调试,
8 { s% E$ a, B$ M! z9 B$ \该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
2 [ I2 x; K3 bjitDebugging 值。& l; Y# \7 T' N8 L- S
编译应用程序时还必须启用
" ^2 {5 j2 Y) b* M. y) y: ]调试。
% F$ b; p7 T9 W8 j( t" Y# h3 E1 V5 ?0 m3 E; b
例如:% Q( O- U2 P) l7 S9 Q1 j# T
; X9 {2 K3 n) ^3 s. L2 V<configuration>6 y' K- x( `9 O% |2 i
<system.windows.forms jitDebugging="true" />
+ V. R0 {5 C) v6 D</configuration>7 K- o$ ]. l. C7 `! {
, `& h# R# ^7 ?; Z% }
启用 JIT 调试后,任何未经处理的异常
+ n% ~; K" _) p$ r! {3 T5 h都将被发送到在此计算机上注册的 JIT 调试器,6 n5 {% I& A" W. S+ a6 T, w
而不是由此对话框处理。
& j5 b! c: B4 n8 }5 C z. g2 {
4 N6 J. J+ T$ D* F$ R# m( k' n; U
4 E! y! C! Q, \ T! T4 d |
|