Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileInfo.MoveTo delay
Message
From
27/11/2012 14:13:23
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01558133
Message ID:
01558189
Views:
53
>Doesn't neccessarily rule out a threading issue - depends what triggers the call to the method containing the MoveTo (a file watcher for example)

The Robot.exe (the desktop application) includes a reference to Framework.dll, which does the MoveTo(). A few lines a command later, still in Robot.exe, a verification is made to see if the file exist. As surprisingly as it gets, the file no longer exist. So, the MoveTo() succeeded but the file is seen has not being there. The verification of the existence of the file is done by using DirectoryInfo(). This file exist verification is done intensively throughout the entire set of applications supported. So, I doubt there would be something in there that would conflict with the recognition of the file.

>Out of curiosity:
>Are you using MoveTo to move the file to a different partition or drive ?
>Does this tend to happen with larger files?

The MoveTo() moves the file from the same drive/logical disks. It is in fact under the same directory branch. We move it from one level to another.

The file size varies from 20 KB to 20 MB approximately.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform