Menu

#37 Non-negative number required. when calling OpenMcdf.CompoundFile.Commit();

v2.0.1
pending
Federico
None
5
2016-12-15
2016-12-04
No

On a few occasions, when calling CompoundFile.Commit, I get the error below. I'm not able to reproduce the error on a regular bassis.

ArgumentOutOfRangeException - Non-negative number required.
at System.IO.FileStream.SetLength(Int64 value)
at OpenMcdf.CompoundFile.Commit(Boolean releaseMemory)

Am I doing somthing wrong or is it a real bug? The only SetLength in Commit is at line 643

sourceStream.SetLength((sectors.Count + 1) * sSize);

sSize is negative? How could that be?

Let me know if you need more information.

Best regards,

Stefane

Discussion

  • Stefane Lavergne

    Sorry subject should read:
    Non-negative number required. when calling OpenMcdf.CompoundFile.Commit();

    I can't change it myself. If an admin can change it I would appriciate it.

    Thank you,

     
  • Federico

    Federico - 2016-12-15
    • summary: Non-negative number required. when calling OpenMcdf.CompoundFile.Commit();ArgumentOutOfRangeException - Non-negative number required. Parameter name: value at System.IO.FileStream.SetLength(Int64 value) at OpenMcdf.CompoundFile.Commit(Boolean releaseMemory) at Devolutions.RemoteDesktopManager.Managers.OpenMCDFv2OfflineEngine --> Non-negative number required. when calling OpenMcdf.CompoundFile.Commit();
     
  • Federico

    Federico - 2016-12-15
    • status: open --> pending
    • assigned_to: Federico
     
  • Federico

    Federico - 2016-12-15

    Hi Stefane, thank you for your reporting.
    Do you have a file that trigger (sometimes) this issue?
    It looks like a file corruption in the header section...

    Please let me know if you succed in reproduce the issue.

    Best Regards,
    Federico

     

Log in to post a comment.

MongoDB Logo MongoDB