EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CallbackMode FormatFixedSize (SolFS.hpp)

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#21170
Posted: 08/24/2012 05:46:14
by steve j. (Basic support level)
Joined: 08/14/2012
Posts: 6

Hi,
I want to format storage.
Code step by step
SolFSStorage * st = new SolFSStorage()
...setting the properties...
st->FormatFixedSize(Size,0);
In callback mode after opening existing file:
CreateFile (...OpenExisting...) i get valid handle to the file
the SolFSSetFileSizeFnc(UserData,FHandle,NewSize) is called.
How to set Size of storage to newSize?
I called StorageSetFileSizeLong(FHandle,NewSize) but I've got error :Access violation reading location ....
How can I set correctly size to storage?

Edit:
Same problem with StorageSetStorageSize.

Thanks for help
#21181
Posted: 08/24/2012 12:27:49
by Eugene Mayevski (Team)

You have some custom container and you need to set its size. Why would you need to call StorageSetFileSizeLong? You need to resize the container, this is the operation external to SolFS. In your particular case call SetEndOfFile Windows function to resize the container.


Sincerely yours
Eugene Mayevski
#21193
Posted: 08/27/2012 02:49:27
by Alexander Plas (Team)

Moved to HelpDesk

Reply

Statistics

Topic viewed 2083 times

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




|

Back to top

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

Got it!