Solved

VB5 winsock control eats memory

Posted on 1997-05-24
3
403 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
ID: 1426513
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
ID: 1426514
Edited text of question
0
 

Author Comment

by:lmeijer
ID: 1426515
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

910 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

21 Experts available now in Live!

Get 1:1 Help Now