MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030403Community[OCCT] OCCT:Application Frameworkpublic2018-12-10 16:282018-12-10 16:28
ReporterBenjaminBihler 
Assigned Tompv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformMingw-w64OSWindowsOS Version7
Product Version[OCCT] 7.3.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030403: Overwriting Big "BinOcaf" Files Does Not Reduce Their Size
DescriptionIf I have a big document file here and I overwrite it with a small document file, then everything works fine except that the file size isn't reduced. If I store it to a new file, the file size is as small as expected.

The solution is to add "std::ios::trunc" to the mode of the line

OSD_OpenStream (aFileStream, theFileName, std::ios::out | std::ios::binary);

which is here line 74 of BinLDrivers_DocumentStorageDriver.cxx. I guess that it would be the best to add "std::ios::trunc" to all calls to OSD_OpenStream where the mode contains the bit "std::ios::out".

Note: I use Mingw-w64 here, but I guess that this doesn't cause a difference.
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-12-10 16:28 BenjaminBihler New Issue
2018-12-10 16:28 BenjaminBihler Assigned To => mpv


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker