Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileInfo.MoveTo delay
Message
From
29/11/2012 10:37:36
 
 
To
29/11/2012 08:25:21
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:
01558352
Views:
37
>>But events are still events :-}
>>If the method containing the MoveTo() is triggered by an event then it's possible that a new call will tread on an existing one with obvious consequences. If that's a possibility then putting a lock on the method might be a solution.....
>
>It is not an event.

Then, assuming the file is actually moved (and that you are catching any exception raised by the MoveTo()) I guess we are back to your first supposition that this is simply a timing issue. Maybe a short Sleep() before getting DirectoryInfo() ?

I was just trying to think of other possibilties......
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform