Solved

VB5 winsock control eats memory

Posted on 1997-05-24
3
418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 116
SQL VB connection works in one PC and doesn't in another 15 74
Message not shown 5 87
Bartender Integration Builder 3 73
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 …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

730 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