ironfede / openmcdf

Microsoft Compound File .net component - pure C# - netstandard 2.0
Mozilla Public License 2.0
297 stars 73 forks source link

Invalid Compound file when saving to stream #56

Closed kucint closed 4 years ago

kucint commented 4 years ago

Hi, In the currently released version (2.2.1.3), the following code produces an invalid compound file. First 0x200 bytes are set to 0. Do you miss some initialization? Best!

string storageFilepath,=@"C:\temp\storage.cfs"
FileStream storageFile = new FileStream(storageFilepath, FileMode.Create);
CompoundFile compoundFile = new CompoundFile();
compoundFile.Save(storageFile);
compoundFile.Close();
kucint commented 4 years ago

Hi, I noticed that the Master Version does not have this issue anylonger. If you already corrected it, sorry for bothering. BTW. when do you plan to release 2.2.1.4?

ironfede commented 4 years ago

Released 2.2.1.4. Thank you for reporting, Best Regards