Winsock Control vs System.Net

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

Is there a reason I shouldn't use the Winsock ActiveX
control and instead use the System.Net and
System.Net.Sockets?

Thanks

Robert
 
Hi Robert,

There is always one to think about with every ActiveX, managed code is also
to make deploy more easy.

Just a thought,

Cor
 
Well, I've worked with Winsock control a lot in VB6. I think the .NET
classes are a great improvement over the ActiveX control. They allow more
flexibility and a more Object Oriented approach since you can inherit from
the classes to extend them. Also, I remember there being a memory leak in
the ActiveX control that was never fixed...

Scott
 
I can think of a reason. The Winsock Control in VB 6.0 has memory leak problems. If I find the URL on MSDN about this issue I will give it to you.
 
Cor,

* "Cor said:
On which question?

In other words: There is (IMO) no reason to use the "old" ActiveX
control (except for saving time when upgrading a VB6 project).
 
Back
Top