Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FTP and clearing out memory
Message
From
26/04/2013 09:18:59
 
 
To
26/04/2013 09:11:57
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:
01571971
Views:
35
>Ok, I got it. Because, the inner Using can have a various type, it is an overload, I have to specify what loStream is:


I was actually looking at this : a problem with the constructor overloads of StreamReader
But would have needed some time to figure out exactly how



Keep us informed whether the extra usings solves your problem

>
>                        Using loFtpWebResponse = loFtpWebRequest.GetResponse()
>
>                            Using loStream As System.IO.Stream = loFtpWebResponse.GetResponseStream()
>
>                                Using loStreamReader As New StreamReader(loStream)
>
>                                    ' Load the files into the string builder
>                                    loStringBuilder.LoadString(loStreamReader.ReadToEnd())
>
>                                End Using
>
>                            End Using
>
>                        End Using
>
>
>Thanks for the help, this works.
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform