|
|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑 ( a! t' S$ M2 l6 I1 y
+ I- J1 a3 f2 O; v" _, M* f+ [; U8 q- f' M2 T
) ~# n" X3 M% @5 g4 o/ t ]8 ?
2 f6 p: m2 w; y/ R
更新版也是一样的,点save时就会出错。; y' t- o5 M* R- J3 b0 }
$ u+ P% Y! I+ o- I# x0 ]
操作系统:win10 x64和win8.1 x64都是一样的出错信息。
, i/ m8 P0 t7 P; j( P( h' l% I: E' Z7 G' `0 K$ c
有关调用实时(JIT)调试而不是此对话框的详细信息,/ n5 B, a) X: {9 @ X
请参见此消息的结尾。' {' a8 `8 p7 m# i& i: M/ n$ B0 k, G
/ ~: i+ n# ?* W' Q6 h************** 异常文本 **************
/ F# R9 h& B5 M8 y; i0 o, ^System.NullReferenceException: 未将对象引用设置到对象的实例。
# l& |- `, ^8 G4 Q3 Z( V 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
2 j5 |# n, ]: t& E! m9 G9 r 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
7 I6 R" I8 U2 L, l' T& m 在 System.Windows.Forms.Control.OnClick(EventArgs e)
% e. a- Y- [: ?8 F) _. i; q 在 System.Windows.Forms.Button.OnClick(EventArgs e)
/ f" \9 X# l9 ^# R% L 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)2 T' q- a2 r! `$ B7 [4 i2 j
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) ] k H" X0 \4 C
在 System.Windows.Forms.Control.WndProc(Message& m)# n& R& i3 _/ c
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)9 P* E$ | u! |2 ^4 @
在 System.Windows.Forms.Button.WndProc(Message& m)
4 S# P% G: X& p- b/ } 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
. A6 j* w( S2 ~/ N. \. b9 ?9 ` y# R R 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)+ y% X/ x3 N& M0 ^" x) `. V
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)( U1 c) Q& P* P; Q7 ^! p
- j" p" ~' t9 z0 B0 p! o6 Q0 w# ~. B7 N7 K/ M
************** 已加载的程序集 **************
* B' K ^' A/ u( ^# Jmscorlib
. n6 j$ r* ]4 u: R( ^ 程序集版本:4.0.0.0, o. M6 N* ?/ x T, K* L- {% m; M6 x
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR9 z3 @6 j9 g: q0 b3 U
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
0 g' k# y8 b4 z" L----------------------------------------
8 Z3 r! E% m3 U2 V6 `2 p5 D0 jPicture_Capture
* q/ }* S3 x4 Z! \ 程序集版本:1.0.0.0
$ L9 f# m" {; P" D Win32 版本:1.0.0.0. R8 Q! m! `, u% F0 T
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
! u- c5 M1 a2 ]3 r0 e----------------------------------------0 I6 m; k& U4 ^. }7 p/ I) M9 E
Microsoft.VisualBasic2 F; k# F7 y: B6 `$ A" K6 F* p
程序集版本:10.0.0.0" m+ E; J( B7 k
Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL5 |: z4 A6 d" {, l
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
' H( Z+ y: h* G, C) l" L u8 m/ m% P----------------------------------------
: j$ g& c* |9 T9 y. @System
A% {- E/ \' `' f( T3 t. ~" e 程序集版本:4.0.0.0) n8 L' w& _2 B6 v8 T% J, E
Win32 版本:4.0.30319.36350 built by: FX452RTMLDR
9 q/ M' f! P9 S, y0 f 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
" H( O" P5 E9 X: C* _7 c----------------------------------------: l' w: R" K, ~8 g1 F3 s5 V+ g8 b
System.Core
3 R& P: h# R# a, _& b 程序集版本:4.0.0.0
* J' R; ^3 L; {4 d: g0 h& F Win32 版本:4.0.30319.34209 built by: FX452RTMGDR6 v e d0 y$ u% e2 w
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll0 k% r* E- Y- [2 _- N
----------------------------------------
: W& ^. A, a" s( x3 i3 u2 iSystem.Windows.Forms
& f. p' \! Z o0 e9 S/ D 程序集版本:4.0.0.0; D" x: {% U+ `% N. M! Z( m7 b+ ]
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR4 O: l5 e1 I5 r( J1 W3 R
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll8 o' e1 ^5 ~0 r
----------------------------------------
& G/ i5 }% W& I* Z8 OSystem.Drawing3 C" S$ q2 H! K- X' h# Q1 w
程序集版本:4.0.0.03 F: j2 x0 u$ a8 }% R1 M
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR
0 g( f$ M8 ^' ^! g2 R$ E 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
* y* |5 a& J+ }3 y# F----------------------------------------
; X. ?! L G; c" T: |, h9 D: DSystem.Runtime.Remoting# {- o: _ o1 Y% v" m2 H
程序集版本:4.0.0.0
# ~. ]2 q. D# h& {9 w Win32 版本:4.0.30319.34243 built by: FX452RTMGDR
" H8 D6 Q* L% M) o% S8 Z/ C5 X 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
# t! h4 o. L# F. S8 T----------------------------------------
! m: @" L" H* v) jSystem.Configuration7 U f/ U% ?2 g. Q
程序集版本:4.0.0.02 E' o8 R* j9 ~) r; ^, \/ `" v
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
/ h) E% n$ w- r% r% J1 F" N 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
1 `1 I5 N2 Z6 `: }9 C4 f- r8 i E----------------------------------------: x9 z# x" ?+ Z4 W# a# X: I! u8 `
System.Xml
, p" \7 v/ y% \/ T3 T3 V# x 程序集版本:4.0.0.0
& \ R! p D. t# I# Z8 z7 u Win32 版本:4.0.30319.34281 built by: FX452RTMGDR# @* h5 M- m1 S" x
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ^, ~0 M7 y, Q: K- |1 k
----------------------------------------' m3 B+ U( X* d! z' ^' p
mscorlib.resources
3 X& y, W1 `2 n 程序集版本:4.0.0.0
. N4 s. U$ x) k) Y: N. a Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
( `2 |9 ~9 c# e0 | 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
, m' f/ N8 y2 `8 B2 {----------------------------------------
1 Y) {9 G8 D) F$ V0 V; z: G3 ESystem.Windows.Forms.resources
8 q* [4 Y9 w$ x1 h 程序集版本:4.0.0.0& I3 H' a# k' f7 U
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR) O6 K) |2 k& P/ s
基本代码: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
, q/ E7 ^) q, u4 J( J; f6 U----------------------------------------
7 H2 l& N% C# ?# i% X7 ?' V0 d1 i+ t2 `9 o8 g. W+ u
************** JIT 调试 **************1 z% z1 T! M8 S1 F, k; o- R& K6 E
要启用实时(JIT)调试, P L0 h# @+ q/ J' j
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
5 n# U/ G$ v- l7 s& \jitDebugging 值。
* `* k2 l$ C$ [: B7 M- j) e编译应用程序时还必须启用. p/ ?# i7 y( ]3 N
调试。
7 l" @6 @/ d+ n1 k8 A7 o- u$ P* g* r% o+ U; v$ E5 p! S
例如:, ]% M$ ]2 a3 Y8 L
" `7 R# S2 J5 ]2 Y( @& W+ G<configuration>2 {' T. u& u* ~! g: U. X
<system.windows.forms jitDebugging="true" />9 o$ s) |1 i* O( b; E+ v$ M: W
</configuration>( _" x* l5 N8 V8 D
% U7 t& f' y0 F9 q& g! V H4 g启用 JIT 调试后,任何未经处理的异常
$ m/ L! [2 n$ L: ^( {1 k都将被发送到在此计算机上注册的 JIT 调试器,
/ W& U# ?" A) k4 W5 W G& K& w3 S而不是由此对话框处理。: n$ p- R0 c" I, Z+ v
) N$ l8 c$ y; G1 c* q' m/ a5 w. w
T0 `% L! s O9 ?& G |
|