EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SOLFSStorage DiskSize Property

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#5366
Posted: 03/12/2008 14:01:31
by Chris Gelhaus (Standard support level)
Joined: 04/12/2007
Posts: 20

In the help file, there is a property for SOLFSStorage listed called DiskSize. This Property does not appear to be available with my version. There is a method called set_DiskSize(). Is this a replacement?

DLL: 1.5.27.31859
solfs: 1.5.27.239
soldisk: 1.5.27.311

Thanks,

Chris
#5367
Posted: 03/12/2008 14:08:07
by Eugene Mayevski (EldoS Corp.)

What API (VCL, .NET, C++) are you using?


Sincerely yours
Eugene Mayevski
#5368
Posted: 03/12/2008 14:10:14
by Eugene Mayevski (EldoS Corp.)

Just checked the source code, and all APIs have this property.


Sincerely yours
Eugene Mayevski
#5371
Posted: 03/12/2008 15:58:20
by Chris Gelhaus (Standard support level)
Joined: 04/12/2007
Posts: 20

It would be .NET.

Here is what I am doing:
Code
_Storage = new SolFSStorage();
....
_Storage.FileName = _FileName;
_Storage.PageSize = _PageSize;
_Storage.UseTransactions = true;
_Storage.UseAccessTime = false;
_Storage.PathSeparator = '\\';
_Storage.Logo = _Logo;   //Default Logo
_Storage.StoragePassword = _Password;
_Storage.StorageEncryption = _Encryption;
_Storage.DestroyOnProcessTerminated = true;
_Storage.DiskSize(1024000);


I get this error when compiling:
Error 16 'SolFSDrv.SolFSStorage' does not contain a definition for 'DiskSize'

PS - I upgraded to the 1.5.29.23423 build just to make sure it wasnt a DLL thing. Anything else I can check?
#5375
Posted: 03/13/2008 00:35:51
by Eugene Mayevski (EldoS Corp.)

DiskSize is a property, not a function. And you are calling it as a function.


Sincerely yours
Eugene Mayevski
#5404
Posted: 03/13/2008 09:34:30
by Chris Gelhaus (Standard support level)
Joined: 04/12/2007
Posts: 20

My mistake. I changed from .set_DiskSize() to .DiskSize without fixing it. However, I have now changed my code to the following:
Code
_Storage.DiskSize = 1024000;


I still get the following error when trying to compile:
Error 15 'SolFSDrv.SolFSStorage' does not contain a definition for 'DiskSize'


I'm sure it's something simple that I am doing wrong.
#5429
Posted: 03/14/2008 08:25:47
by Chris Gelhaus (Standard support level)
Joined: 04/12/2007
Posts: 20

Any new information on this?
#5431
Posted: 03/14/2008 10:49:52
by Eugene Mayevski (EldoS Corp.)

The developer says that something was overlooked in the .NET code. We plan a new build probably on weekend and it will fix this issue.


Sincerely yours
Eugene Mayevski
#5432
Posted: 03/14/2008 10:56:40
by Chris Gelhaus (Standard support level)
Joined: 04/12/2007
Posts: 20

I'd like to ask a few questions about how this parameter works:

Will it be read/write?

If so, will this allow me to set a maximum size for a dynamic file?

If so, will resetting this parameter (or not specifying it) allow the dynamic file to grow beyond the previously set size?


Thanks for the prompt response!

Chris
#5435
Posted: 03/14/2008 11:16:00
by Eugene Mayevski (EldoS Corp.)

Yes, the property is read/write. It lest you resize the storage, but it doesn't set the limits. The resizeable storage will grow larger if it needs to.

To set the upper limit for the storage, use MaxPageCount propety. Please note that if you use journalling, certain space (about 10 or 20 per cent, Alex knows better) is reserved for the journal.


Sincerely yours
Eugene Mayevski
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 8899 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!