EldoS | Feel safer!

Software components for data protection, secure storage and transfer

StorageCompact bug?

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 07/17/2008 19:01:15
by squaredotmatrix  (Basic support level)
Joined: 02/16/2008
Posts: 6

StorageCompact bug?

* Using SolFS Explorer, I create a storage:

File: C:\Program Files\EldoS\SolFS\test.st
Fixed size: 1 MB
Page size: 256
Logo: SolFS for Windows © EldoS Corporation

* I drag all files from "C:\Program Files\EldoS\SolFS\VCL\Samples\SolFSExplorer"

StoreProps.dfm Wizard.dfm SolFSExplorer.dpr About.pas Export.pas
FileProps.pas Import.pas ImportFile.pas Link.pas Main.pas
OpenStorage.pas Password.pas Progress.pas StorageEncryption.pas
StorageSelectFile.pas StorageSelectFolder.pas StoreProps.pas StrRes.pas
Wizard.pas SolFSExplorer.res About.dfm Export.dfm FileProps.dfm
Import.dfm ImportFile.dfm Link.dfm Main.dfm OpenStorage.dfm
Password.dfm Progress.dfm StorageEncryption.dfm StorageSelectFile.dfm

No compression, no encryption

* Check the Size (File > Property):

Used space: 561664
Free space: 486912
Capacity: 1048576

* Delete some files:

StorageSelectFolder.dfm Link.pas Password.pas About.pas Export.pas
Progress.pas Password.dfm Progress.dfm StorageEncryption.pas

* Compact the storage (Tools > Compact):

* Check the Size (File > Property):

Used space: -1099511068416 **** WORNG *****
Free space: 1099512116992 **** WORNG *****
Capacity: 1048576

I think the function StorageCompact() has bugs and it affects StorageGetSizes()
Posted: 07/21/2008 07:39:01
by Alexander Plas (EldoS Corp.)


Unfortunately I'm not able to reproduce your problem. Can you give me your storage file with all SolFSExplorer files inside and tell me which files should I delete to reproduce problem?



Topic viewed 2440 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!