1. IOException has a message, associated with it. Please check and tell us the exact message or error code. It's possible that you are attempting to open the storage, that is already opened by the other process (or the previous instance of your process which has not been shut down properly in IDE).

2. Storage corruption can mean
a) real corruption of the file system structures
b) that the storage has not been closed properly.

I am trying to use the CheckAndRepair API, but i am getting the error. I have the object of SolFS::SolFSStorage. Its name is "Storage". I call the CheckAndRepair function as shown below . Storage->CheckAndRepair(strStorage,512,2); where strStorage is the path of the .st file. Now when i compile the program i get the error as "error C2661: 'SolFS::SolFSStorage::CheckAndRepair' : no overloaded function takes 3 arguments"

Please give me some solution for this problem, The problem I first close the already opened SolFS, But sometimes when i try to open this already closed SolFS, i get the exception as "System.IO.IOException".

Also I just want to know whether the CheckAndRepair() function should be called on successfully opened Solfs only. because if i get the above mentioned exception, that means my solfs is not successfully opened and when i call the CheckAndRepair() function on this closed solfs i get the exception as "Object reference not set to an instance of an object.". So please help me out.

I am getting the exception when i call CheckAndRepair() function on the closed Solfs object. The exception is "Object reference not set to an instance of an object." and the HResult value is "-2147467261". The code snippet which i am using is as below.

Storage->Close();
Storage->CheckAndRepair(strStorage,512,2,"");

While executing the second statement, i am getting the above mentioned exception. Please provide me the solution to use the CheckAndRepair() function.

As per your request, i am sending you the exception details. The Exception message is "Exception of type System.IO.IOException was thrown." and the HResult value is -2146232800. This is the exception which i receive sometimes when i try to open the Solfs.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.