[Mono-bugs] [Bug 591866] New: unexpected System.ObjectDisposedException in System.IO.Packaging

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 29 09:41:44 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=591866

http://bugzilla.novell.com/show_bug.cgi?id=591866#c0


           Summary: unexpected System.ObjectDisposedException in
                    System.IO.Packaging
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: WPF
        AssignedTo: toshok at novell.com
        ReportedBy: ustramooner at users.sourceforge.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=351149)
 --> (http://bugzilla.novell.com/attachment.cgi?id=351149)
DocumentFormat.OpenXML test files

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2

          System.IO.Stream stream = new System.IO.MemoryStream();
          cls.CreatePackage(stream, false);

          //seeking in the MemoryStream fails... whereas in Microsoft .NET it
doesnt
          stream.Seek(0, System.IO.SeekOrigin.Begin);

See attached zip file for more details


Reproducible: Always

Steps to Reproduce:
1. run 'mono Main.exe 2'
2.
3.
Actual Results:  
Unhandled Exception: System.ObjectDisposedException: The object was used after
being disposed.
  at System.IO.MemoryStream.CheckIfClosedThrowDisposed () [0x00000] in
<filename unknown>:0 
  at System.IO.MemoryStream.Seek (Int64 offset, SeekOrigin loc) [0x00000] in
<filename unknown>:0 
  at mono.bug.demo.MainClass.Main (System.String[] args) [0x00000] in <filename
unknown>:0 

Expected Results:  
no exception

See README in the zip file for more details, including:

* Main.cs a test program that produces several different problems
* README describes all the bugs I found and how to reproduce
* DocumentFormat.OpenXml.dll the dll I'm running
* expected.docx the expected docx that the Main.cs should create
* WindowsBase.diff: a patch that I applied to my code

-- 
Configure bugmail: http://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