|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑 ) u/ f" t5 l5 n$ [7 K
" s) R/ e' d' W, X) ~
" b% a$ F$ }/ l7 Z, j) f
8 @% Z- @8 m; g. q' W0 N
6 v- p* f6 }1 L* m4 u/ _更新版也是一样的,点save时就会出错。
1 b. @$ H+ b, V" n$ Z6 W$ Y$ e& j# K' B, O4 B7 X0 p
操作系统:win10 x64和win8.1 x64都是一样的出错信息。, P" _9 U0 e/ [$ y0 d
) V! ^" U9 Y' B$ W* `+ E4 a- d有关调用实时(JIT)调试而不是此对话框的详细信息,
: h' t; ]1 f; V q1 B0 A2 L请参见此消息的结尾。
! Y' C* Z5 T( s4 ?1 g, g0 C
! j! E o4 y( g, _************** 异常文本 **************
" \/ V& F3 ^7 m# p5 SSystem.NullReferenceException: 未将对象引用设置到对象的实例。
) C t" N5 [) o( z 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)
" L" e) L% r1 }6 i+ { 在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)
7 }; M/ Y5 N/ F& g 在 System.Windows.Forms.Control.OnClick(EventArgs e)
* P2 {; Z0 t. J% C 在 System.Windows.Forms.Button.OnClick(EventArgs e)& }# k# G/ Z+ ?( ]5 t2 ~
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)6 L x( `$ ^0 e) A0 o) p. Z& x
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
" Q* p g7 t) O9 E. o& Y2 X 在 System.Windows.Forms.Control.WndProc(Message& m)! Q/ k, w- z3 p. {; }9 {% W, Z q
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)% n/ ?1 }1 v. k3 G6 i5 l
在 System.Windows.Forms.Button.WndProc(Message& m)
) n; Q. [1 P. q, ]! D3 n& _4 O: Y 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
* _; k: P" P! n% e' P 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
1 J& F+ {5 I; j, W 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)7 P* s9 r7 B- ?/ f/ Z2 J O1 h7 x
8 t! L+ S4 p, [; c* T7 C
( d: m. ^4 f/ C2 \' u
************** 已加载的程序集 **************" \+ \! M' D8 i$ |1 q! k: A
mscorlib p: I0 P$ L8 e: p$ Y- P
程序集版本:4.0.0.0
5 O- `6 z) c; R9 @ Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
4 ~+ T6 X. ]' u 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
" d0 l# B+ {7 K2 x0 @. T! a# q----------------------------------------
! |/ Y1 ?& i7 l! q# @ a$ b' v1 ]Picture_Capture5 i$ v* ]1 v1 c& O; a8 `! V
程序集版本:1.0.0.0+ L# g8 F- s" o. \2 i% t
Win32 版本:1.0.0.09 Y3 V m @/ W9 G H
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe$ b* f5 H) f+ w5 P
----------------------------------------
3 Y. p% s3 f9 X% `3 gMicrosoft.VisualBasic
: @" Y9 ]! V: z- ?# f1 S 程序集版本:10.0.0.0
+ s6 f- b6 p$ I% y1 }- ~, ^' M Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL& y3 l5 K- a' q$ g$ N3 g: B& k9 Y
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll; P# G6 b; i) V
----------------------------------------, p S3 J$ m* ~9 l- d! @
System
+ j; D7 r) `& }, B 程序集版本:4.0.0.0 F+ v& m: Q# U3 S& o: z
Win32 版本:4.0.30319.36350 built by: FX452RTMLDR2 G0 S% `, A% Z9 \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
) e" v5 M8 g! {----------------------------------------6 P5 p1 \( O6 o8 l" r% _6 u$ a
System.Core
8 Z, H, n& r& _2 u4 N) O 程序集版本:4.0.0.0) r8 n9 i. F7 d6 F6 r7 q' f+ d
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR8 ^* l! E) q( _
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll4 A9 W6 o4 F; O% g* a. m
----------------------------------------
& H8 u T; \$ A7 D# s! |2 YSystem.Windows.Forms
2 ~3 V7 K" g1 k) G& e3 x' P 程序集版本:4.0.0.0& n) s2 T0 G, G% d3 p: r
Win32 版本:4.0.30319.34250 built by: FX452RTMGDR; D2 r5 l* k" x9 e- k7 j
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
$ q4 N6 q/ A0 I4 T8 j! M: M% s7 ^6 ]0 |! C----------------------------------------9 Q' ~" S" k& o& L* j- M& n
System.Drawing1 h( }" l( n: b$ _4 e( Z
程序集版本:4.0.0.06 q8 B+ g1 d4 d, p: H5 l. w# M
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR4 k' O7 {8 Q' X/ L6 `
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
+ g* S# f; b$ V6 R6 @$ Y----------------------------------------. X' E' ]; h+ T( U. i: s, j
System.Runtime.Remoting
( E9 r" {2 q$ {# D8 H6 n: ` 程序集版本:4.0.0.0. @: S9 i1 W* v6 W& ^% @6 b& o* g
Win32 版本:4.0.30319.34243 built by: FX452RTMGDR$ q) B! t$ ~9 _1 t# G
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
# \2 c$ |/ I9 R7 i* X----------------------------------------8 f3 U& S |9 Y8 A( j
System.Configuration- [1 |8 i0 _; u+ U
程序集版本:4.0.0.0
6 J/ y* f/ r4 c0 @# z5 s- U4 o. @ Win32 版本:4.0.30319.34209 built by: FX452RTMGDR+ Y- d, X3 x' _. Q/ P V
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
( |" a8 ^: ?+ I' N) x----------------------------------------
5 U' w9 z5 ?" Q* n) ^& vSystem.Xml
( `1 y4 d; O' p4 t 程序集版本:4.0.0.0+ t- a7 u8 J) ?: K* O1 H! F
Win32 版本:4.0.30319.34281 built by: FX452RTMGDR5 w+ |1 b i6 G7 P4 h! B1 P4 t
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
, K/ N& y8 W/ ~* \$ y5 x----------------------------------------0 y Q: s H; O
mscorlib.resources# |4 {1 ~" S' {1 _8 V
程序集版本:4.0.0.0+ V: ~# F# O& m$ p* c, O& w
Win32 版本:4.0.30319.34209 built by: FX452RTMGDR Q5 n) m! e- `- q* p) p6 x9 E% \
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll2 \( | [. E- ~# S
----------------------------------------
0 {& A9 m: ?5 |( ?7 G& y" ?% I) K1 vSystem.Windows.Forms.resources1 e2 {6 Q4 s+ y( ^
程序集版本:4.0.0.0* R) j; ?/ w( d. [5 Q5 C
Win32 版本:4.0.30319.36213 built by: FX452RTMLDR
2 u5 i9 x3 ]( b, x2 j$ m5 J4 h 基本代码: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
1 \! s8 I; f* G+ q0 L----------------------------------------. h$ Z1 o0 P: r. Q" W* R* ^5 Q
- E0 ^/ [, |8 \% _************** JIT 调试 **************. {) [' ]$ f4 D
要启用实时(JIT)调试,; _7 w. v8 ?- v6 m
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
: L; z0 a3 \! T) j+ m \9 VjitDebugging 值。
* O5 b I- }9 s# Q4 S) Y8 |- h编译应用程序时还必须启用+ M& t/ @1 F/ X2 [
调试。# `# W3 m2 q! J2 w$ Y' b
0 T$ s4 u/ y5 M p$ g$ G
例如:
, k# F( S/ d( Z* a1 [4 z, P* P2 P/ S+ W' G7 y
<configuration>
: s% i8 `4 o2 J. R* _. t <system.windows.forms jitDebugging="true" />
. Y% A/ f& o! N</configuration>, T4 D1 B0 H- _) k# @% O4 R
- S0 i% j3 I, @* Q, i2 Z" Q启用 JIT 调试后,任何未经处理的异常$ C- ^" a1 z: h" ?# P
都将被发送到在此计算机上注册的 JIT 调试器,
3 p$ D/ B; l" |6 K而不是由此对话框处理。, [! v9 [0 s- S7 w& D, C2 v
% j# G0 ~9 D/ Z2 N
/ k) J) J1 T& }& D/ t8 n
|
|