WinSock control CPU hog and gimme WinSock API! :) 
Author Message
 WinSock control CPU hog and gimme WinSock API! :)

Hi,

I've written a chat server app using the MS Winsock Control in VB6
Thing is I run this server on NT4 dual PII 450 and it sends the CPU
usage to 100% - hehe

The software establishes multiple TCP connections to one port from
multiple clients.

I went and added a zillion DoEvents() to every loop where processing
occurs and still no luck. What's with this?

No. 2
I'm pretty sick of the WinSock control anyway. Where can I get the API
to interface directly, how much harder is it and does any1 have and VB
examples?

Many Thanks,
Mark



Mon, 08 Oct 2001 03:00:00 GMT  
 WinSock control CPU hog and gimme WinSock API! :)
I've succesfully used the winsock control in VB5, but haven't tested in vb6
yet.  When you get these strange CPU usages you should check and make sure
you aren't having any cascading events.  Otherwise, there may be a memory
leak in something (probably in a component in the project, or possibly in
something else running on the desktop that gets 'interfered' with when your
app runs).  Try running this app on another computer and see if you get the
same results.  You may also want to check MS Knowlege base and see if there
are any known issues.
Quote:
>I've written a chat server app using the MS Winsock Control in VB6
>Thing is I run this server on NT4 dual PII 450 and it sends the CPU
>usage to 100% - hehe



Tue, 16 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB6 Winsock Control vs. Winsock API

2. Winsock vb Control vs Winsock 32 API??

3. use the winsock Control or winsock API

4. use the winsock Control or winsock API

5. winsock api, not winsock control

6. winsock api vs winsock control

7. VB6 Winsock Control vs. Winsock API

8. winsock api vs winsock control

9. WinSock Control at 100% CPU Load

10. Winsock OCX vs Winsock API?

11. Winsock OCX vs. Winsock API

12. Winsock.bas (pure Winsock API programming)

 

 
Powered by phpBB® Forum Software