|
-
Dec 31st, 2019, 06:09 PM
#1
Thread Starter
New Member
Problem clearing an array
I am using the following array and I'm having difficulty disposing of it properly according to Project Analyzer by Aivosto.
Dim buffer As Byte() = Nothing
Dim sLinetoInput2 As New StreamReader(Application.StartupPath & "\Muo")
buffer = Encoding.ASCII.GetBytes(shunk & vbCrLf)
sLine.Write(buffer, 0, buffer.Length) '''' WRITE TO THE FILE
sLinetoInput2.Close()
sLine.Close()
I tried Array.Clear(buffer, 0, buffer.Length) but according to Project Analyzer, the array is not deallocated properly. How do I dispose of it accordingly?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|