| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Sun Mar 02, 2003 10:36 pm Post subject: Memory Usage Help |
|
|
If I have a program that when running uses: (using no bitmaps)
7.208 Kbs
And if i let it use a dsr resource file approx. 815 Kb
26 bitmaps and 2 gifs....
And i run the program again it jumps to : 20,176 Kb
How come ????
Nathan
Intel Celeron 600, 192Mb Ram, 6.8 Gb Hard Disk, Windows Xp, VDS4.5 |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sat Sep 11, 2004 10:36 pm Post subject: |
|
|
Howdy,
I just came across this posting. Unfortunately, one of my programs is experiencing the same. Did you ever determine the cause(s) of your particular memory problems?
Thanks,
- Boo |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Sun Sep 12, 2004 5:28 pm Post subject: |
|
|
I found it may have been a bug in vds 4.5 as it works great in VDS5 with the memory usage staying with normal parameters.
Using *.dsr files within vds 4.5 caused some probs.
Nathan |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sun Sep 12, 2004 6:00 pm Post subject: |
|
|
Thanks Nathan.
With several of my programs, when running them and monitoring with the Windows Task Manager, I see big fluctuations in the Mem Usage column...
For example, upon initially running one of my programs, it will run at 5,200 k or so, then when the browser element (for example) is loaded, the program will climb upwards of 16,000 k or so. Upon removal of the browser element, it remains at 16,000 k.
In fact, I compiled a basic test executable (i.e. a simple dialog with one button), compiled it, and it ran at 4,500 k or so. Kind of a lot for a simple little application, eh? I am using VDS 5.
Does anyone know why this is? Any solutions?
FYI: Because I live on the Florida Panhandle, I may be unreachable for awhile. It looks like I am going to have to evacuate due to Hurricane Ivan. 8-(
Thanks guys,
- Boo |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Sep 13, 2004 6:28 pm Post subject: |
|
|
Why are you worrying about this? Is your system running slow because of lack of memory or something?
Who knows how the memory allocation system works? Possibly memory which has been used when you open the browser element or something doesn't get freed straight away in case it can be used by something else. In some languages memory is freed back to the OS by a process called the "garbage collector" which runs periodically. So you should only be concerned if the memory usage constantly grows while an application is running, or it isn't all released back to the OS when it closes. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Sep 13, 2004 9:45 pm Post subject: |
|
|
| Boo wrote: | | FYI: Because I live on the Florida Panhandle, I may be unreachable for awhile. It looks like I am going to have to evacuate due to Hurricane Ivan. 8-( |
Best of luck to you. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Mon Sep 20, 2004 11:15 pm Post subject: |
|
|
Thanks guys.
Jules: Thanks for the input. I was just worried that too much memory was being used by my application (which needs to run in the background at all times).
FreezingFire: Unfortunately, my community was one of the hardest hit areas in the United States. However, we (and our house) came out virtually unscathed. (We lost a few shingles, but not a drop of water entered the house, even though a tidal wave (i.e. a huge "wall" of surge) hit the street dropping boats, staircases, and houses (yes, houses) all over the place. Some of our neighbors lost their homes... We are currently without power, but I have temporary Internet access via a hotel connection.
Enjoy your computing guys, because being without power (and net access) is a major bummer. (Just glad to be alive at the moment!)
Sincerely,
- Boo |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Sep 25, 2004 3:11 am Post subject: |
|
|
Excellent to hear you and your house is ok.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sun Sep 26, 2004 4:46 pm Post subject: |
|
|
Gracias!  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Sep 27, 2004 8:40 am Post subject: |
|
|
just heard in the news that you guys are now suffering a 4th hurricane - hope you are all ok
serge _________________
|
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Sep 28, 2004 8:44 am Post subject: |
|
|
hi boo,
wow, just read the article your link pointed to and what an eyeopener as to the extent of the devastation...nothing of that nature has been mentioned in the news here in australia
serge _________________
|
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Tue Oct 26, 2004 1:26 am Post subject: |
|
|
See this posting for a solution to memory usage issues:
http://forum.vdsworld.com/viewtopic.php?t=2999
Cheers,
- Boo
Last edited by Boo on Tue Oct 26, 2004 11:45 am; edited 1 time in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Tue Oct 26, 2004 11:46 am Post subject: |
|
|
Oops. Too late at night...
Fixed above.
Cheers,
- Boo |
|
| Back to top |
|
 |
|