Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FTP and clearing out memory
Message
From
25/04/2013 15:30:25
 
 
To
25/04/2013 15:03:08
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571897
Message ID:
01571907
Views:
34
>I was going to suggest something similar
>
>In addition to Disposing of the StreamReader, I think you need to do the same for
>
>
>loFtpWebResponse.GetResponseStream()  // the stream
>loFtpWebResponse 
>
Isn't loFtpWebResponse.GetResponseStream() already part of the Using?

>In addition, could you reuse the following (rather than instantiating each time)
>
>New Uri(lcURI)
>New System.Net.NetworkCredential(cUsername, cPassword)
>
This, I do not understand. Are you saying I could get rid of the New in each of those two lines?
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
Next
Reply
Map
View

Click here to load this message in the networking platform