Solved

VB5 winsock control eats memory

Posted on 1997-05-24
3
408 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 115
base64 decode encode 12 133
Send outlook email from VBS Script 2 29
VBA: copy range dynamically based on config sheet v2 3 33
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

770 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