EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ReleaseUnusedFiles causing an exception

Posted: 04/08/2010 16:31:07
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

Using the C++ library version of Version 3.0, I am getting an unhandled exception whenever I call ReleaseUnusedFiles. In the debugger I am at line 109 of the Microsoft routine "free.c" which a stack trace tells me was called by CbFsFileFree (or something like that, I can get the exact name for you later).
Posted: 04/08/2010 18:34:00
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

I took out the call to ReleaseUnusedFiles and the problem did not go away. I have investigated it further and what specifically happens now is this. I Select my virtual drive in Windows Explorer and click File, New, Folder. Windows shows me the "New Folder" and allows me to change the name. I change the name and click somewhere outside the box and thats when I get the unhandled exception. The stack trace tells me I am in the following function;

vdiskService.exe!CbFsDeleteFileFunc() + 0xfd6 bytes C++

Also, I put a break point into the CbFsCreateFile callback and it seems to work fine. So I then put a break point into the CbFsRenameOrMoveFile callback and I never reached that point before the error occurred.

Any ideas?
Posted: 04/09/2010 10:06:20
by Yura Sorokin (Standard support level)
Joined: 04/07/2010
Posts: 5

I had a similar problem when I upgraded from 2.5 to 3.0.
It turned out that the problem was in missing OnFlushFile callback.
It looks like guys from Eldos just forgot to check if this caback is set before allowing CreateStorage() to return successfully.

Just add an empty callback
void OnFlushFileEvent(CallbackFileSystem* Sender, CbFsFileInfo* FileInfo)

and register it

Hope, this will help.
Posted: 04/09/2010 10:09:01
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

Thank you for your reply, I will try this and let you know if it works.
Posted: 04/09/2010 11:22:23
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

Well your idea certainly helped. The program no longer crashes with an unhandled exception, but it still does not perform the desired actions. I will get back to this forum with more details in a little while.
Posted: 08/23/2010 10:22:44
by Kurt Griffiths (Standard support level)
Joined: 12/08/2008
Posts: 34

Thanks! I had the same problem and you saved the day! EldoS really needs to get this fixed.



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