EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to tell a Timeout in Enum

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#10635
Posted: 07/22/2009 08:58:28
by Bastian Moldenhauer (Standard support level)
Joined: 06/04/2009
Posts: 40

Hey,

how can I communicate a timeout to the driver/explorer so the user gets a understandable feedback if an timeout happens.

I tried something like this at the end of EnumerateDircetory(..)

Code

           //some code with timeout possible
           //because server is not responding
        
           catch (TimeoutException)
            {
                //ERROR_TIMEOUT
                throw new ECBFSError((uint)Errors.ERROR_TIMEOUT);//timeout error code -> 1460
            }


But the explorer simply shows an empty folder. Any idea how this can be done in a better way?

Thanks and Regards
#10649
Posted: 07/24/2009 06:30:24
by Volodymyr Zinin (EldoS Corp.)

Hi,

It seems that Explorer either doesn't check for errors during enumeration or doesn't show them to the user.
Try to throw some other errors. Perhaps they can be shown.

Reply

Statistics

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