Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileInfo.MoveTo delay
Message
De
27/11/2012 03:50:20
 
 
À
26/11/2012 21:48:30
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:
01558145
Vues:
46
>I have this declaration:
>
>
>            Dim loFile As New FileInfo(tcSource)
>
>
>Then, I want to move the file. I use something like this:
>
>
>                    loFile.MoveTo(tcDestination)
>
>
>Is it possible that this MoveTo() method is being executed in the background? I have a weird situation that, sometimes, once this command is being executed that the code which follows cannot see the file. I always assumed that method completes its operation before the code continues on the next line. But, what I am experiencing on a high volume transactions of moving file here and there leads me to think that there could be something behind all this.

I don't think the method runs asynchronously (nothing in the docs to indicate this is so).

You don't say where this code resides but if this is ASP.NET then is it possible, given the high volumes, that it is a threading issue?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform