Solved

Winsock CRASHES..GENIUSES Download This!!

Posted on 1998-12-19
8
338 Views
Last Modified: 2013-11-13
Let me first say that this problem is IMPOSSIBLE..if you figure this out you DEFINITELY are a true "GENIOUS" in all its virtues!

The problem is this:

When using the Winsock Control to have it call a remote site you will begin to notice that this running app will continue to take up more and more memory until it eats its way into virtual memory where, once there, it starts "THRASHING" your hard drive until it crashes your entire system. I had 10 instances of this app running all at once and it started "thrashing" my system 4 hours later and once i closed down another running app (it was Netscape) my entire system froze. I had to reset my computer.

Here is URL you can download the program from:
http://209.3.64.124/crimsan/winsock-src.zip
http://209.3.64.124/crimsan/winsock-exe.zip

The file "winsock-src.zip" is the source file. It requires VB 5 or higher.

The file "winsock-exe.zip" is the executable version of this app. It includes OCX files and other necessary files.

There are ONLY 3 direct calls to the WINSOCK control so there isn't much i could be getting wrong here.

If ANY of you figure this out I WILL have your BABY!!
0
Comment
Question by:rufFur
8 Comments
 
LVL 3

Expert Comment

by:altena
Comment Utility
Could you post a picture first :-)

(btw, it sounds like an ordinary resource leak to me)
0
 

Author Comment

by:rufFur
Comment Utility
hahaha...
If it is a resource leak could you delineate what this is and possible causes and cures...Please dload my source code (5k) and check for yourself. There are ONLY 3 Winsock calls yet when it is allowed to recall over and over again it fills memory. This sounds like a bug in Winsock or something...PLEASE HELP!!!!

My source is at:
http://209.3.64.124/crimsan/winsock-src.zip
0
 
LVL 1

Accepted Solution

by:
kacklehorn earned 200 total points
Comment Utility
Do you have Service Pack 3 installed for VB5? There is a known issue with the winsock control leaking memory, that was fixed with SP3. Go to http://support.microsoft.com/support, and look up Q171843 "BUG:Winsock control leaks memory when unloaded."

L8ta
KaCkLeHoRn

P.S. I recompiled your code in VB6, and didn't seem to have the issue. Then again I'm on NT with 128 MB of RAM.
0
 

Author Comment

by:rufFur
Comment Utility
I dont think I have the SP3 for my Windows 95b OS. I did download a few files from MS: w95krnlupd.exe  and  W95ws2setup.exe

Where can I download SP3?  The w95krnlupd.exe file claims to fix the problem Im having with winsock but after playing around the problem still exists.  Perhaps theres a fix for this kernel fix?

Thanks.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Expert Comment

by:kacklehorn
Comment Utility
0
 

Author Comment

by:rufFur
Comment Utility
Hi guys,
  I just read the Winsock Control BUG (Q171843) and it appears that Service Pack 2 and Service Pack 3 both have this same error. And as of this time there is no "descent" fix for it. ****!!!
The problem seems to stem from BOTH VB's crippled Winsock control and my window's 95 kernel (I got the supposed kernal fix which described the problem IDENTICALLY but it does absolutely nothing). Oh, by the way, i DID install SP3 some time ago (about 8 months to be exact when it first was released. So unless they have a new revision i already have it installed)

I am at a loss.  Thanks for all your help kacklehorn!! Maybe i should get vb6?  The support question mentioned that under the "Performance" tab of the Systems Properties i can watch the resources plummet as my app is running. I havent tried this out but i will try it out and if it DOES plummet than this is a quick indication that my prog really is eating memory. I will keep you posted. Could you test this out on your side too?Thanks
0
 
LVL 1

Expert Comment

by:muffinthedog
Comment Utility
rufFur,
  Ifn I cans download D page frum yoohoo widz D WinInet functions, is D erffer 2s has me baybee steel valeed?
0
 
LVL 1

Expert Comment

by:kacklehorn
Comment Utility
I did test your project with VB6, and didn't have the problem.

BTW: Everyone seems to want to know what you look like now! Looks like you'll be havin' no-ones baby too soon though, huh?

l8ta
KaCkLeHoRn
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now