EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnCanFileBeDeleted for directories or even for files?

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
Posted: 01/15/2013 06:40:34
by Eugene Mayevski (Team)

is it build 123 or 128 (the latest release build for CBFS 4.0). Also please see Vladimir's questions above.

Sincerely yours
Eugene Mayevski
Posted: 01/15/2013 07:17:32
by Davide Baccaglini (Standard support level)
Joined: 11/19/2012
Posts: 48

No, the problem doesn't occurs in Mapper sample, only in my project.
Posted: 01/15/2013 07:19:03
by Davide Baccaglini (Standard support level)
Joined: 11/19/2012
Posts: 48

The build is 128.
Posted: 01/15/2013 07:34:54
by Eugene Mayevski (Team)

Well, you need to find the difference between your code and the mapper sample. First of all you can modify the mapper sample to set the same storage type and characteristics, as in your code (and see if this causes the problem). If this doesn't help reproduce the problem, you can create a ticket in HelpDesk and put the complete project sources (with .csproj file but please without Obj and Bin folders) there. We will try to see what's up there.

Sincerely yours
Eugene Mayevski
Posted: 01/15/2013 08:06:34
by Volodymyr Zinin (Team)

Perhaps the folder you deleted wasn't empty. CallbackFS checks it before calling the OnCanFileBeDeleted callback. Check for the previous call of the OnIsDirectoryEmpty callback. If it was called and reported that the directory was empty then take Process Monitor from sysinternals.com, run it, set there to filter only operations for your CallbackFS virtual disk (by setting the filter "Path"->"begins with"->"X:") and mark the menu item "Filter->"Enable advanced output". Then reproduce the problem and look for the IRP_MJ_SET_INFORMATION operation with the type SetDispositionInformationFile for the directory. It is expected to finish with error. Then see the operations for this directory that were performed earlier. Most probably one of them was processed incorrectly. If it won't help please save the Process Monitor log in the native format and give it to me.
Posted: 01/15/2013 08:14:36
by Davide Baccaglini (Standard support level)
Joined: 11/19/2012
Posts: 48

've solved. There was an error in OnIsDirectoryEmpty event.

Thank you Vladimir!
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.



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