SecureSockets.Receive Method |
|
|
by Bryan [bstenfors at stenco dot net] posted on 2003/08/15 |
|
I keep getting an error saying that my buffer is Null even though I have sent information from my client. Any suggestions? |
by Pieter Philippaerts [Pieter at mentalis dot org] posted on 2003/08/15 |
|
Could you post the exact error? [a stack trace with line numbers would be nice] |
by Bryan [bstenfors at stenco dot net] posted on 2003/08/18 |
|
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
at Org.Mentalis.Security.Ssl.SecureSocket.Receive(Byte[] buffer)
at MovieWebRealin.frmControlCenter.Accepting(SecureSocket objServerSecureSocket) in C:\Stenco\MovieWebRealin\ControlCenter.vb:line 197
at MovieWebRealin.frmControlCenter.Listening() in C:\Stenco\MovieWebRealin\ControlCenter.vb:line 184An unhandled exception of type 'System.ArgumentNullException' occurred in org.mentalis.security.dll
Additional information: Value cannot be null.
Above is the exact error I get and I think it also contains the stack trace |
by Pieter Philippaerts [Pieter at mentalis dot org] posted on 2003/08/18 |
|
Looking at the stack trace, the exception can have only originated from the check in the Receive method that makes sure the buffer parameter is not a null reference.
Double check your code [ControlCenter.vb:line 197] and make sure you do not pass a null reference to the SecureSocket.Receive(byte[]) method. |
by Bryan [bstenfors at stenco dot net] posted on 2003/08/18 |
|
Ok I figured that part out now I am getting an empty string rather then the data I am trying to send. Any ideas? |
by Pieter Philippaerts [Pieter at mentalis dot org] posted on 2003/08/18 |
|
Where do you get an empty string? In the ControlCenter.vb file? If so, it's a problem in your code and I can't really help you with that... |