|
发表于 2016-5-13 17:20:34
|
显示全部楼层
本帖最后由 ok927 于 2016-5-13 17:23 编辑
- g% u9 F, \7 p# ^* V" N$ u% y( ~! l* ^/ F" V4 I$ s
3 J" v. R5 `( H0 v( _/ k$ Z$ c' j1 c5 X' [2 A, m* P: W
+ A9 i! i6 f4 {0 M3 M0 U
更新版也是一样的,点save时就会出错。9 e& T- x4 c! M- j3 N3 s3 q* G
# `5 q* { m- s4 Z- Y操作系统:win10 x64和win8.1 x64都是一样的出错信息。/ s; `; `6 h6 ~" F0 Z; v* m' n
7 G* x6 W! N$ x5 c有关调用实时(JIT)调试而不是此对话框的详细信息,5 T: l/ L! |8 k ]' T
请参见此消息的结尾。
% {9 u Y9 z M0 K3 x2 p2 f: }& p5 Z. U% V* s
************** 异常文本 **************
8 O6 T: k+ ?, a% _) FSystem.NullReferenceException: 未将对象引用设置到对象的实例。
& r0 f1 [2 f+ s) L" J+ ?! ?4 A7 R 在 Picture_Capture.Form1.PicQuality(Bitmap BMP, String nFile, Int64 n)! j3 t. ^( I" O Y- F/ N% u
在 Picture_Capture.Form1.Button2_Click(Object sender, EventArgs e)) [$ z2 X- Y" w# V
在 System.Windows.Forms.Control.OnClick(EventArgs e)
7 g$ r% E) u0 E4 g 在 System.Windows.Forms.Button.OnClick(EventArgs e), D1 F) w3 E' A/ e. g& x; j5 L# x
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) ?, q x# ^6 b
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)( b$ q( u- j' F! U& q/ i- x" v
在 System.Windows.Forms.Control.WndProc(Message& m)2 g1 H3 h% D- S: J- [, L; H
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)5 [. {% ?) m8 W: a
在 System.Windows.Forms.Button.WndProc(Message& m)% C1 v5 D# t. W! n3 ]+ L7 T7 v1 s( F
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)+ w" O' e; F3 ~# E. w8 P5 W
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
a* p+ V$ G" G 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
# q* ^: c; k7 Z6 ~- P. \
/ m# x8 P) U3 N4 ~7 d2 K; S6 }
/ K0 w5 M+ B! a( Y" v* o$ J************** 已加载的程序集 **************
" z8 n- _/ q' h! a7 Vmscorlib# a0 K* `+ p7 u# Y' t8 T9 c
程序集版本:4.0.0.0
* s8 @/ \; y* z! {1 R' z Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
1 L f0 p: c5 q+ @4 x# O/ {% Y 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
% T* A4 K( E0 o, I. |$ \----------------------------------------& J& F @- @' ~0 W$ D# g
Picture_Capture
: i9 Q" v% J& i8 d9 x 程序集版本:1.0.0.0' ]- e+ B& h- s9 A3 o
Win32 版本:1.0.0.04 |9 G# v/ {+ ~0 ? \8 n
基本代码:file:///C:/Program%20Files%20(x86)/Picture_Capture/Picture_Capture.exe
1 C# P- W2 @% }! V----------------------------------------5 _% C5 A0 e0 j9 m) ~9 @$ T- ~
Microsoft.VisualBasic, O5 X. M% ~6 n: v
程序集版本:10.0.0.0
( \; F) f) p. g Win32 版本:12.0.20806.33440 built by: FX45W81RTMREL* @% j0 W4 T2 T
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll- D- h4 u; J! { F6 h
----------------------------------------5 }- ]* j" Y9 Y) v
System
2 {; F3 h4 p) W5 K" [3 B 程序集版本:4.0.0.0
5 |) B0 Q2 \* g" T6 O8 }. x Win32 版本:4.0.30319.36350 built by: FX452RTMLDR
( D' E4 r+ L( P- ^ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
p) m3 k% k0 F$ k/ I J---------------------------------------- l* w, K6 G A! c3 u1 y
System.Core
* u6 [2 B( m* ?: c 程序集版本:4.0.0.0
! }/ l1 U1 M6 D Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
, _4 Y/ y: ]9 n% ` 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
3 p) H$ O. |/ P! T1 \: S% D6 ^---------------------------------------- v0 F2 T7 w' m: e
System.Windows.Forms: _ a6 v G5 H m; u, M5 B
程序集版本:4.0.0.0
2 e. ]0 {+ E3 J- J& b0 t8 W Win32 版本:4.0.30319.34250 built by: FX452RTMGDR' q# o: W* Z( i* r. H6 K
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll- d: |8 \/ D; c$ u3 {$ Q, {. H
----------------------------------------8 M. T S& k) C; {
System.Drawing! q! v I: }, G* ^1 W( h! {
程序集版本:4.0.0.0+ Q. L3 y% P0 ]
Win32 版本:4.0.30319.36337 built by: FX452RTMLDR
" G- F0 p0 @7 Y8 a. L9 Q( a6 o 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll0 P" u9 Z2 ?2 s1 v( Q' ?( h; I; n
----------------------------------------
/ J5 O4 o! w7 t* GSystem.Runtime.Remoting3 A6 H% o6 Z8 i8 ^' Z3 ^
程序集版本:4.0.0.0
6 L3 j6 B) Q3 S7 Q6 l7 ` Win32 版本:4.0.30319.34243 built by: FX452RTMGDR6 Z F( I q. H; p' d) ]
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
" j1 a1 x. F9 o( X) s& G0 ^8 x----------------------------------------
6 W2 k0 O; R9 m W& b3 YSystem.Configuration
& J) X6 r* P1 w0 i8 s8 B8 _) D 程序集版本:4.0.0.0
2 Y& D0 A ?3 W& M4 W! @3 [. x7 D Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
8 M( p; |8 F8 f) E1 A! t- K 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll* Y3 w: I5 `9 A- Z- f) {, g
----------------------------------------
! z, X' K8 L) aSystem.Xml
$ s7 m/ T+ f% @6 y+ c5 L1 S6 k 程序集版本:4.0.0.0$ e4 \: l8 H8 n) f
Win32 版本:4.0.30319.34281 built by: FX452RTMGDR+ ?8 X( q5 A" {9 |+ Y- G' q) q1 c
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
, N) G1 `0 { y* k1 J+ k. I: H. @----------------------------------------
% Z+ J' S1 d. p: ]5 Hmscorlib.resources
: V% E- `' c6 U' E- F3 j3 Z/ O 程序集版本:4.0.0.0
: N. Z& r. @- ^. i* z5 D Win32 版本:4.0.30319.34209 built by: FX452RTMGDR
5 x7 F; l: L' D$ S8 [ 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll1 n- P9 T: c, `' l! j# z
----------------------------------------! w! @; ?5 t0 D+ |# u; M- n
System.Windows.Forms.resources0 K* u! H9 n7 v
程序集版本:4.0.0.0
+ G8 M0 k1 n# Q" R. C$ G% ~& H! J Win32 版本:4.0.30319.36213 built by: FX452RTMLDR+ t/ [ h' u5 N5 ?$ R! d0 a4 v. @
基本代码: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* u0 n( Q# Y8 |" {( S" u9 M% x0 W
----------------------------------------' e0 j/ G: h+ z6 c
/ I( ^# D7 C9 y) y1 F# x/ a************** JIT 调试 **************
0 V# a5 U( a+ ~2 K0 p要启用实时(JIT)调试,
/ f) g7 t% E6 |, _$ D5 V- r该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置: Z5 G$ F- q0 c, X- n8 n
jitDebugging 值。8 Z9 @0 s, J8 f0 J
编译应用程序时还必须启用
. S1 E- _ a8 |5 e8 J% `! {调试。
7 n. M7 \# k/ U5 ]7 {- k. ]2 P6 O; [2 r7 \. |: {! @
例如:
5 k/ }* V8 t$ k$ l/ y" ~; B m6 a+ p
6 F2 y0 C0 h0 _! x/ V5 J<configuration>
- M; {/ |# F( B8 a <system.windows.forms jitDebugging="true" />4 [: \. h9 n: G9 W/ ?
</configuration>8 }+ v- j% h; b
; O4 z6 e0 R6 O# L( P: j% `* d启用 JIT 调试后,任何未经处理的异常
+ i, g4 o0 x, i5 w都将被发送到在此计算机上注册的 JIT 调试器,2 S; P& ^& `3 U
而不是由此对话框处理。& L+ v# h6 b U6 F6 \; e
8 O T5 H1 n S/ Y# ?' Z% i: B# p& c2 T# G; [
|
|