[Mono-bugs] [Bug 664690] New: DeflateStream returns 0 byte stream.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 14 16:47:13 EST 2011



           Summary: DeflateStream returns 0 byte stream.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: gtissington at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10

public static void SaveCardData (CardData cd, string filename)
     using (FileStream fs = new FileStream (filename, FileMode.Create)) {
        SaveCardData (cd, fs);

public static void SaveCardData (CardData cd, Stream stream)
   if (cd != null) {
       cd.DllVersion = m_dllVersion.SnapVersion ();

        DeflateStream ds = new DeflateStream (stream,

         // INCORRECT:  this line produces a 0 byte file
         m_dataSerializer.Serialize (ds, cd)

         // this line produces a correct file but not compressed.
         m_dataSerializer.Serialize( stream, cd)

Reproducible: Always

Steps to Reproduce:
Actual Results:  
The output is a 0 byte steam.

Expected Results:  
a compress stream of data

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list