Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileInfo.MoveTo delay
Message
From
27/11/2012 03:50:20
 
 
To
26/11/2012 21:48:30
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:
01558145
Views:
48
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform