windows hangup whne manual eject USB in the timing of createdirectory method run


c# code output files usb.

 system.io.directory.createdirectory(strdirpath);

 system.io.file.copy(...)

windows hangup  whne manual eject usb in timing of createdirectory method run.

is have knowhow or countplan.

thanks.

you cannot prevent user doing that. ejecting usb without going through safely remove option in windows (which block in case) has been known potentially corrupt usb drive.

the best can wrap code in exception handler (as should anyway) , report error. app may freeze while disconnect operation occurring should recover after (via exception).

michael taylor
http://www.michaeltaylorp3.net



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'