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
Post a Comment