diff options
author | Zoltan Varga <vargaz@gmail.com> | 2006-10-22 18:19:49 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2006-10-22 18:19:49 +0400 |
commit | 7bca2efa27f77b9f3893f3fdc3a0444eac72b872 (patch) | |
tree | f45f6547446c23d5f5f667dd71b0a0825fcf64c2 /mcs | |
parent | 0e0cebc85a3ef797ddb3d7a53466e3477f8a92ec (diff) |
2006-10-22 Zoltan Varga <vargaz@gmail.com>
* DeflateStream.cs: Throw a more meaningfull exception when zlib initialization
fails.
svn path=/trunk/mcs/; revision=66884
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System/System.IO.Compression/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System/System.IO.Compression/DeflateStream.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Compression/ChangeLog b/mcs/class/System/System.IO.Compression/ChangeLog index 767605c6b32..f3ef02a8d0c 100644 --- a/mcs/class/System/System.IO.Compression/ChangeLog +++ b/mcs/class/System/System.IO.Compression/ChangeLog @@ -1,3 +1,8 @@ +2006-10-22 Zoltan Varga <vargaz@gmail.com> + + * DeflateStream.cs: Throw a more meaningfull exception when zlib initialization + fails. + 2006-09-28 Andrew Skiba <andrews@mainsoft.com> * DeflateStream.cs: TARGET_JVM diff --git a/mcs/class/System/System.IO.Compression/DeflateStream.cs b/mcs/class/System/System.IO.Compression/DeflateStream.cs index df09f0fb7fa..e113210abc9 100644 --- a/mcs/class/System/System.IO.Compression/DeflateStream.cs +++ b/mcs/class/System/System.IO.Compression/DeflateStream.cs @@ -87,7 +87,7 @@ namespace System.IO.Compression { this.sized_buffer = Marshal.AllocHGlobal (BUFFER_SIZE); this.z_stream = create_z_stream (mode, gzip); if (z_stream == IntPtr.Zero) { - throw new OutOfMemoryException (); + throw new NotImplementedException ("Failed to initialize zlib. You probably have an old zlib installed. Version 1.2.0.4 or later is required."); } this.open = true; if (mode == CompressionMode.Compress) { |