Solved

VB5 winsock control eats memory

Posted on 1997-05-24
3
400 Views
Last Modified: 2013-11-13
It seems as if the Winsock control (mswinsck) that comes with Visual Basic 5.0  Professional eats memory when loading and unloading a control.
 
 *** But may be I am doing something wrong! Can anyone tell me? ***
 
 e.g.:
 1. create a Winsock control to a form and give it the index 0
    --> Winsock1(0)
 
 2. create a test program as follows:
 
    while 1
      Load Winsock1(1)
      Unload Winsock1(1)
      text1.text = str(count)
      count = count + 1
      doevents
    wend
 After about 10000 times my computer hangs completely!
 The OS I use is Windows-NT 3.51 (service pack 5) or 4.0 (sp. 1).  You can also watch the memory (pagefile usage) shrink with the Windows-NT diagnostics utility.
 
 Paul Langemeijer
 
 Faculty WINS, University of Amsterdam
 (Faculty of Physics and Astronomy)
 Valckenierstraat 65
 1018 XE  Amsterdam
 the Netherlands
 email: langemeijer@phys.uva.nl
0
Comment
Question by:lmeijer
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
ywoedta earned 100 total points
Comment Utility
i think the problem you are jhaving is not with the control, but with the winsock dll itself.  have you gone and gotten the patch from the microsoft site?  go to microsoft.com, then look for tech support, then patches and updates... there is a winsock patch for a memory-eating bug found in winsock.dll. hope this helps you out... =]
0
 

Author Comment

by:lmeijer
Comment Utility
Edited text of question
0
 

Author Comment

by:lmeijer
Comment Utility
It is proposed that the problem is in the winsock.dll.
However I use the latest service pack (5) for Windows-NT 3.51.
(I cannot find a patch for this file; should it not be in the
service pack?)

Can somebody verify that the program is running well on his machine?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now