EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CbFS .NET Sample Exception after AddMountingPoint

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#6234
Posted: 05/13/2008 16:38:52
by Aaron Schnarr (Basic support level)
Joined: 04/10/2008
Posts: 2

I'm in the process of evaluating Callback File System.
I'm running the C# example (also tested in VB.NET) VMounter.
In the documentation for the sample, and for the methods calls themselves, it says that Add/Remove Mounting Points can be done before/after the media has been mounted:
"The mounting point(s) can be added before or after insertion of the media."
However, if I perform the following steps, the form throws an exception:
1. Install Driver
2. Create Storage
3. Add Mounting Point "W:"
a. Exception "Device not ready" thrown on line 155 of Form1.cs (streamwriter creation).

Conversely, if I perform the test as follows, the application works:
1. Install Driver
2. Create Storage
3. Mount Media
4. Add Mounting Point "W:"
This functions as expected, and the mounting point is correctly created.

Should AddMountingPoint be calleable before the media has been mounted?
Is it a better practice to Mount the media, and then add mounting points?
Please let me know if you need more information.
Thanks.
#6236
Posted: 05/14/2008 01:22:12
by Eugene Mayevski (EldoS Corp.)

Quote
Aaron Schnarr wrote:
Should AddMountingPoint be calleable before the media has been mounted?
Is it a better practice to Mount the media, and then add mounting points?


It's pretty logical to be able to add mounting points before the media is inserted. You don't need a CD to be inserted to assign a letter to CD-ROM. So if it doesn't work, we need to fix it.


Sincerely yours
Eugene Mayevski
#6237
Posted: 05/14/2008 01:50:59
by Vladimir Cherniga (EldoS Corp.)

It just a sample code wrong behaviour in first scenario:

1. Install Driver
2. Create Storage
3. Add Mounting Point "W:"
a. Exception "Device not ready" thrown on line 155 of Form1.cs (streamwriter creation).

The code in the VMounter sample try to create a file on virtual disk for demonstration purposes, it suppose that media already inserted(mounted) in the storage. We will fix the samples.

Reply

Statistics

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