Solved

Winsock CRASHES..GENIUSES Download This!!

Posted on 1998-12-19
8
339 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
ID: 1451519
Could you post a picture first :-)

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

Author Comment

by:rufFur
ID: 1451520
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
ID: 1451521
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
ID: 1451522
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
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.

 
LVL 1

Expert Comment

by:kacklehorn
ID: 1451523
0
 

Author Comment

by:rufFur
ID: 1451524
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
ID: 1451525
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
ID: 1451526
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

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump 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.

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

20 Experts available now in Live!

Get 1:1 Help Now