?
Solved

VB5 winsock control eats memory

Posted on 1997-05-24
3
Medium Priority
?
426 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

743 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