Solved

Virtual Memory Problems..

Posted on 2003-11-24
16
383 Views
Last Modified: 2013-11-13
Hello, this is probbly a very basic question, I am having virtual memory probelms in my app.

First when the program loads in one of the modules i have:
              PUBLIC X1(500) as NEW Form1

Then i have  the program load those forms not all of them, but typicly anywhere from 4 to 100 of those, but i want the extra for future use.

Also I have listviews in each one storing about 60 lines of data with 4 or 5 sublists.

Anyway, could any of that be the reasion for my virtual memory problems?  And if so what do you suggest I do?
0
Comment
Question by:clear100-com
  • 7
  • 4
  • 3
  • +1
16 Comments
 
LVL 1

Expert Comment

by:PX
ID: 9810043
What kind of virtual memory probelms? Any error message?

If there is problem such as not enough memory, put some more.

And also, do the following will save some memory:

declare this in the module
PUBLIC X1(500) as Form1

when you want to load one more form1, do
set x1(xxx) = new form1

0
 

Author Comment

by:clear100-com
ID: 9810229
I am using that:

declare this in the module
PUBLIC X1(500) as Form1

when you want to load one more form1, do
set x1(xxx) = new form1

Thats not an issue, Windows is giving me low virtual memory errors.
0
 
LVL 1

Expert Comment

by:PX
ID: 9810864
As what I said, it will save some of your memory, save only. Now, tell me how many memory you got on your computer, 64? 128?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:clear100-com
ID: 9811244
1gb
0
 
LVL 1

Expert Comment

by:PX
ID: 9811692
Should be enough, try to load only 10 forms, see what happens, basically, unless you used too much memory, you shouldn't see virtual memory problem. And also, try to increase the virtual memory in your computer see if that's solve the problem.
0
 

Author Comment

by:clear100-com
ID: 9813323
I have tried that, under task man, it just loads just at a minimal amount of ram, then the ram increases at a slow rate and this is a program that is needed to run 24x7 for well... for ever on an automated system that will be stored in a rack.

0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9813856
What is your program doing that it needs 500 forms?

Idle_Mind
0
 

Author Comment

by:clear100-com
ID: 9845193
It is running code in each node (form).
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9845342
That seems very ineffecient to use a form just to house some code.  Does each piece of running code need a visual interface?

Idle_MInd
0
 

Author Comment

by:clear100-com
ID: 9845432
well, each form does a winsock function call that pings its responsible host to make sure its active.  Sometimes it is supose to ping it every second and sometimes there are problems, i don't want every "node" or from to have to wait until the other is done doing what ever.  So this is why i need everything on its own form
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9847203
I wonder if it would be less memory intensive to have one form with arrays of winsock controls, timers and listviews?  It might be worth trying out.

Idle_Mind
0
 

Author Comment

by:clear100-com
ID: 9847225
Please focus on the problem, i have an acutall reasion why i need it like this specfic, if you don't have any coments to add that will assist me with the genral problem, please don't post any comments, I don't mean to be rude in the least bit, its just frustrating.  New question (cleaned up) is at: http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20812183.html, again, please don't post to it unless you have an actuall resulition to the problem.

Bill.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9848115
"...I am having virtual memory probelms in my app."

Just a few tips...If you don't have all the answers, then don't:

1) Post a question in an open public forum.

2) Berate people for asking for further detail.

3) Judge what is or is not revelant to the "problem" when you haven't been able to figure it out yourself.

4) Get frustrated when people take their time to help you.

I will gladly not post any further comments.

Good Luck,

Idle_Mind
0
 

Author Comment

by:clear100-com
ID: 9848343
My apologies Idle_Mind, and thank you for your assistance.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 9877518
PAQ'd and 20 points refunded.

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error when passing an argument to a vb6 that contains  '/' 7 40
MS SQL store procedure to calculate and return result 6 62
Problem to open Excel file 15 175
Spell Check in VB6 13 126
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…
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 clear a vector as well as how to detect empty vectors in C++.
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.

860 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