EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error calling NotifyDirectoryChange

Posted: 12/13/2008 11:57:27
by Tim Hayes (Standard support level)
Joined: 06/06/2007
Posts: 36


I am using Win XP / Delphi, calling NotifyDirectoryChange after adding a file that was created internally (ie. not added through the vistual disk calling cbfs). I have tried several differnt types of file path eg. "F:\New Document.txt" and "\New Document.txt".

I am consistently getting an error as follows:

"Assertion Action == CBFS_FILE_ACTION_ADDED || Action == CBFS_FILE_ACTION_REMOVED || Action == CBFS_FILE_ACTION_MODIFIED failed in \umode\CBFSApi\cbfsapi.c line 1850."

I have made sure that the NotifyDirectoryChange is called from within a different thread to any CBFS callback routine, and I have also used a critical section to ensure that Windows does not jump in before I am finished (there may be several notifications).

Any ideas or advice would be most welcome.


Posted: 12/14/2008 08:50:10
by Eugene Mayevski (Team)

Thank you for the report.
I have moved the topic to HelpDesk for detailed investigation.

Sincerely yours
Eugene Mayevski
Posted: 12/15/2008 02:40:39
by Volodymyr Zinin (Team)


The problem is in the incorrect TCbFsNotifyFileAction values. It must be:
fanAdded 1 New file has been created in the directory
fanRemoved 2 One or more files have been deleted
fanModified 3 One or more files have been modified/updated

It will be fixed in the next build, but now you can use the direct values (i.e. 1, 2, 3) instead of literals.
Posted: 12/17/2008 09:08:29
by Eugene Mayevski (Team)

Yesterday build actually fixes this.

Sincerely yours
Eugene Mayevski



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