EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Corrupted storage

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#2235
Posted: 02/12/2007 05:53:15
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

Hello!

In a 15000-times-repetitive loop, I've random got this error when calling ForceCreateDirectories: Storage Error: Storage file corrupted

It occured 5-7 times during this 15000-items loop. I'm not working from multiple threads nor from multiple apps. I use single thread app to store files inside. However, I do open and close storage for every file addition (not very optimal, I know, but it shouldn't break because of that??!)

How can this be prevented and what causes storage to be corrupted?

Best regards,
Jure
#2236
Posted: 02/12/2007 05:55:02
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

Oh, and another thing. After this error occured, the next file got stored OK. It occurs, as I said, randomly.

Best regards,
Jure
#2237
Posted: 02/12/2007 07:02:47
by Alexander Plas (EldoS Corp.)

What wersion of SolFS are you using? Can you show your source code?
#2239
Posted: 02/12/2007 07:09:03
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

I'm using SolFS 3.0 on Delphi 7.0 (Windows XP). I will post source code as soon as I can... Must I upload it as an attacment or can I paste it into post?

Best regards,
Jure
#2240
Posted: 02/12/2007 07:09:30
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

The code itself it is then used on Windows 2003 server...
#2242
Posted: 02/12/2007 07:27:59
by Eugene Mayevski (EldoS Corp.)

I think something has been fixed regarding IsCorrupted (giving false alarms) in build 71.

If build 71 doesn't help, *then* the next time the error is reported, close the application (to preserve the storage) and send us the storage file using HelpDesk (if storage size doesn't exceed 2Mb in ZIP file) or make it available for download otherwise.


Sincerely yours
Eugene Mayevski
#2265
Posted: 02/13/2007 03:50:48
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

I am not using IsCorrupted function (should I use it?). I will post a code snippet on some url and make it available for download.
Where do I read which build number is used? Direct on SolFS.dll file?

Best regards,
Jure
#2266
Posted: 02/13/2007 04:04:36
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

I have checked build number on SolFS.dll, but it does not have one (when clicking properties, the versions tab is not showing at all). However I have several SolFS.dll files inside these folders:
SolFS\Win32\DynamicLib
SolFS\Win32\DynamicLib\NoNagScreen
SolFS\Win32\DynamicLib\Unicode
SolFS\Win32\DynamicLib\ARM
SolFS\Win32\DynamicLib\x86

Which one is correct? (the last DLL with version info I've found was 3.0.0.61).

Hope this helps...

Best regards,
Jure
#2267
Posted: 02/13/2007 04:15:35
by Jure Bogataj (Priority Standard support level)
Joined: 05/23/2006
Posts: 35

I have posted code snippet on:
http://www.mikrocop.com/personal/bjure/SolFS/solfs_problems.txt

There are two functions:
mcAddStream - To add stream to SolFS Storage
AddFileToStorage - called 15.000 times for each file added.

Best regards,
Jure
#2268
Posted: 02/13/2007 08:49:47
by Alexander Plas (EldoS Corp.)

Hello

Try to check file SolFS\changes.txt for version number.

I have tested your code and not able to reproduce your error. Please check your version of the SolFS.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

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