EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Changes in files not saved

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#5204
Posted: 02/29/2008 04:43:15
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

Hello,

When I use my own test app or your SimpleMount C# sample code,
changes in files are rarely saved.

For example if I create a file test.txt it will appear again at next use, but the content of the file is often erased !

Do I need to explicitly delete mounting point before exit, and use Close method ?

I use:
m_Storage.DeleteMountingPoint("Z:");
m_Storage.Close();

But the Close method crashes each time !
It does not only if I use Close(true);

Please help me !

Thank you in advance, best regards.
#5208
Posted: 02/29/2008 05:27:03
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

By the way I thought about activating SolFSStorage.EnableSystemCache Method,
But I only found UseSystemCahce (please note the spelling error).

And activating it didn't help me.

Thank you.
#5211
Posted: 02/29/2008 05:37:08
by Alexander Plas (EldoS Corp.)

Hello

m_Storage.Close() method throws an exception if there are some open files on your disk z:
m_Storage.Close(true) forcefully closes all open files.
#5213
Posted: 02/29/2008 06:01:24
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

Yes it's what I read on the forum, but my files are NOT opened !
(but they are shown in files explorer).

But you didn't answer to my question,
why are the Txt files often empty when I mount the volume again !

Please note that for example if I copy two Txt files to the virtual drive,
the next time I mount the volume,
0, 1, or both of the Txt files might be empty !

I don't understand why it works sometimes for only one file,
it should work for both or not at all, very strange.

As I stated, it happens with your SimpleMount sample code too.
#5216
Posted: 02/29/2008 06:45:36
by Volodymyr Zinin (EldoS Corp.)

Hello,

Quote
Patrick Dorin wrote:
For example if I create a file test.txt it will appear again at next use, but the content of the file is often erased !

Unfortunately we can't reproduce it. Please specify in details how do you create txt-files and write to them?
Also specify what windows version (including whether it's 32 or 64-bit) are you using.

Quote
Patrick Dorin wrote:
Do I need to explicitly delete mounting point before exit, and use Close method ?

No, you don't.

Quote
Patrick Dorin wrote:
But the Close method crashes each time ! It does not only if I use Close(true);

What do you mean? Does it throw exception? If so then specify the exception details.
Thanks.
#5218
Posted: 02/29/2008 07:11:12
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

I create files with Windows Explorer,
and I just open and save them with Notepad.
I use Windows XP 32 bits.

Please note that for example I don't have problems copying Jpeg files.

Here are the exception details when I use Close method:

System.IO.IOException: Access Refused

at SolFSDrv.?A0xa57c9fe6.CheckStorageResult(Int32 StorageResult)
at SolFSDrv.SolFSStorage.Close(Boolean Force)
at SolFSDrv.SolFSStorage.Close()

But I think it's because the selected drive in Windows Explorer is the virtual drive,
if I select any other drive it doesn't crash I think.
#5219
Posted: 02/29/2008 07:13:49
by Kenny Clement (Priority Standard support level)
Joined: 09/03/2007
Posts: 61

Quote
I use:
m_Storage.DeleteMountingPoint("Z:");
m_Storage.Close();

But the Close method crashes each time !
It does not only if I use Close(true);



We're having this problem constantly as well.

The empty (0kb) files, are also something that occassionally happens, allthough not every time (not reproducable)
#5220
Posted: 02/29/2008 07:18:01
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

Well I can just use Close(true) then, and it won't crash, but can it cause some other problems ?

Anyway it doesn't solve my problems with empty files, any idea ?

I tried again and I have the same problem with Jpeg files !
Most are ok, but some are damaged !

Could it be possible that data stays in buffer, and is not written when the drive is unmounted ?

Because all works fine till the drive is unmounted, there are problems only when the drive is unmounted and mounted again.

Thank you.
#5223
Posted: 02/29/2008 07:53:01
by Volodymyr Zinin (EldoS Corp.)

Quote
Patrick Dorin wrote:
Well I can just use Close(true) then, and it won't crash, but can it cause some other problems ?

If the Close(FALSE) is called, the function checks whether all files on the volume are closed and performs closing the volume only if this is true.
If the Close(TRUE), then this check is not performed. In this case if some programs have opened files and don't write modifications to them yet then the data will be lost.

We are trying to reproduce the problem. But please try to reproduce the problem too with Close(FALSE). Before such closing you should close all opened files and close all explorer windows that display the volume views.
Also if it possible could you give us the storage file where the problem occurred? Perhaps we will be able to reproduce the bug with it.

Quote
Patrick Dorin wrote:
I tried again and I have the same problem with Jpeg files ! Most are ok, but some are damaged !

Do you copy the jpeg files by the use of Explorer? Any information can be useful.

Quote
Patrick Dorin wrote:
Could it be possible that data stays in buffer, and is not written when the drive is unmounted ?

It isn't possible. But we are checking it also.
#5226
Posted: 02/29/2008 08:28:33
by Patrick Dorin (Standard support level)
Joined: 02/28/2008
Posts: 26

Thx for your answer,

Quote

Before such closing you should close all opened files and close all explorer windows that display the volume views.


As I stated already if I close explorer it seems that close(false) works well,
so it seems it was not a bug.
I thought I just had to close all files.

Quote

Do you copy the jpeg files by the use of Explorer? Any information can be useful.


Yes I copy them with Explorer.
Approx 5% of the jpeg files are corrupted.

But approx 90% of the time, the txt files become empty !

Thank you for your support, best regards.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

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