Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileInfo.MoveTo delay
Message
De
29/11/2012 10:37:36
 
 
À
29/11/2012 08:25:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01558133
Message ID:
01558352
Vues:
38
>>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......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform