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
 
* "Robert said:
Is there a reason I shouldn't use the Winsock ActiveX
control and instead use the System.Net and
System.Net.Sockets?

No.
 
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.
 
Sorry I didn't see that somebody already mentioned this
BTW- I have seen it leak memory
 
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top