Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Excessive RAM Usage


Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2004, 12:29 PM
dan0r dan0r is offline
Newcomer
 
Join Date: Aug 2004
Posts: 1
Default Excessive RAM Usage


Hi.

I seem to have a problem, and wonder if anyone can help?

I've created a Vb6 progy that uses the Winsock & longtimer controls.

It loads and connects a number of sockets (max 500) to remote hosts and commands are sent etc (IRCX servers). If sockets error or drop they are automatically reloaded. (unload's then load's the control). The program keeps sockets connected constantly by sending data every so often.

I have been receiving compliants that if used for 24hours + the program seems to eat all available windows RAM

I am wondering what is causing this problem, and if there is a way to perhaps limit or resolve this issue?

I have suspicious it could be one of the following:

1) the winsock controls ?
2) longtimer buggy?
3) adding large amounts of data to a listbox over a period of time ? (10000+ lines in total)

If anyone has any ideas or knows of why this might/could happen i would be greatfull for any help

Thanks in advance

Dan.
Reply With Quote
  #2  
Old 08-03-2004, 01:00 PM
Banjo's Avatar
Banjo Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Default

First thing to check is that you have the latest VB6 service pack (SP6) installed. There have been several winsock memory leaks fixed in the last couple of service packs.
__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
  #3  
Old 08-03-2004, 01:54 PM
Agent707 Agent707 is offline
Retired Contributor
 
Join Date: Mar 2002
Posts: 1,829
Default

And if you don't have SP6, here is a link to get it from MS... (took me a while to find it).

Click me fast before I get deleted...

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->