Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using FTP and clearing out memory
Message
De
25/04/2013 15:30:25
 
 
À
25/04/2013 15:03:08
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571897
Message ID:
01571907
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform