News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
NullReferenceException in VirtualSocket.Close()  
by leludo [leludo at yahoo dot fr]
posted on 2005/06/22

Hello,

I made a client/server application using the security library. It uses one SecureSocket to listen to SSL connection requests and then one per accepted connection.
I get no problem when closing all the connections.
I only get a NullReferenceException when the Security Library and my app are built in Release and launched without any debugger attached. I found, by adding try-catch blocks that it came from the VirtualSocket.Close() because the InternalSocket is null.

I wonder if something (like an error when disconnecting) could have forced the InternalSocket to close...
It probably comes from an async operation that finishes earlier than expected (there is no error when debugging, maybe due to the reduced executing speed)

Thanks for your great job.

leludo.

PS : I use VS2005 Beta 2, framework 2.0.50215, Seclib 1.0.13.715 (2005.06.04)

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.