Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recommendation on accessing a file
Message
From
21/09/2006 20:20:57
 
 
To
21/09/2006 20:17:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01156238
Message ID:
01156242
Views:
18
>You could put try...catch in a loop w/o throwing the error. At the end of the loop if loFile is null throw.

So, basically, I could allow a maximum of 2 seconds for this retry. Otherwise, I would throw an error. This process only takes a fraction of a second. The files that are being created by the robot are about 200 to 1000 characters. So, with this approach, using the 2 seconds maximum timeout, I should be able to cover it pretty much. But, the method is used by other applications which might create bigger files. So, I guess I could add a parameter for the number of seconds or number of retries to do with a small pause between each of them.
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
Reply
Map
View

Click here to load this message in the networking platform