Compact Framework 2.0

VB Code:
  1. If clientSocket.Available <> 0 Then
  2.     available = clientSocket.Available (A)
  3.     ReDim buf(available - 1)
  4.     clientSocket.Receive(buf, available, SocketFlags.None)
  5.     response.Append(Encoding.ASCII.GetString(buf, 0, buf.Length))
  6.     End If



I got an error for this (A), the error message is:

An ObjectDisposedException exception is thrown when an operation is attempted on a disposed object, such as a closed stream or registry key.

The help URL is: http://msdn2.microsoft.com/en-us/li....80,d=ide).aspx

How can i solve this ?

I am running this on Pocket PC 2003 Emulator
But when i run this on Pocket PC 2002 X86 Emulator, this is fine, back then iw as running VS 2003.

Thank you.