EldoS | Feel safer!

Software components for data protection, secure storage and transfer

cbfs.MountMedia() is stuck

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#36844
Posted: 05/31/2016 09:56:13
by Rony Fragin (Standard support level)
Joined: 05/23/2016
Posts: 6

Hello,

When I run CBFS in Visual Studio debug mode, my code is stuck at:

Code
mCbFs.MountMedia(0);


I checked the logs and all the calls that are made during the MountMedia method, are working correctly:

Code
[Trace][16:50:08.514 31/05/2016] CbFsMount
[Trace][16:50:09.660 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.765 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.768 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.771 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.773 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.777 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.784 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.787 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.790 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.793 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.796 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.799 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.802 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.805 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.808 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.810 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.813 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.815 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.818 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.820 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.822 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.825 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.827 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.836 31/05/2016] CbFsGetVolumeLabel
VolumeLabel: MyDisk
[Trace][16:50:09.839 31/05/2016] CbFsGetVolumeId
VolumeID: 809067362
[Trace][16:50:09.841 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.844 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.847 31/05/2016] CbFsGetVolumeId
VolumeID: 809067362
[Trace][16:50:09.848 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710
[Trace][16:50:09.851 31/05/2016] CbFsGetVolumeSize
TotalNumberOfSectors: 20971520, NumberOfFreeSectors: 20353710


When I run the code from the executable it works fine, but I can't debug it..

Thanks.
#36846
Posted: 05/31/2016 10:17:53
by Eugene Mayevski (EldoS Corp.)

Indeed debugging can cause various side effects up to BSOD.

The reason is that debuggers don't play well with the mode, in which the system is during callback execution (but not only then).

Unfortunately there's not much we can do about these complications, as the system was not designed for the things like we do in our driver-based products.


Sincerely yours
Eugene Mayevski
#36847
Posted: 05/31/2016 10:41:12
by Volodymyr Zinin (EldoS Corp.)

Perhaps something in your callbacks causes such behavior. For example the returned values from the OnGetVolumeSize callback. Try to debug one of the CBFS samples.

Reply

Statistics

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