forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Memory Usage Help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Sun Mar 02, 2003 10:36 pm    Post subject: Memory Usage Help Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Sat Sep 11, 2004 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Sun Sep 12, 2004 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Sun Sep 12, 2004 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Sep 13, 2004 6:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Sep 13, 2004 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Mon Sep 20, 2004 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Sep 25, 2004 3:11 am    Post subject: Reply with quote

Excellent to hear you and your house is ok. Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Sun Sep 26, 2004 4:46 pm    Post subject: Reply with quote

Gracias! Cool
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Mon Sep 27, 2004 8:40 am    Post subject: Reply with quote

just heard in the news that you guys are now suffering a 4th hurricane - hope you are all ok

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Mon Sep 27, 2004 12:41 pm    Post subject: Reply with quote

Thanks Serge. A lot of people over here are suffering. This is the first time in recorded history that four hurricanes have hit Florida in a single season. (Five if you count the small tropical storm near the beginning of the season--although this one was not a hurricane.)

Here is the latest on Jeanne (which did not hit my area):

http://story.news.yahoo.com/news?tmpl=story&u=/ap/20040927/ap_on_re_us/hurricane_jeanne_us&cid=519&ncid=716

Thanks again,

- Boo
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Sep 28, 2004 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Oct 26, 2004 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Oct 26, 2004 9:13 am    Post subject: Reply with quote

Boo wrote:
See this posting for a solution to memory usage issues:

http://www.vdsworld.com/forum/viewtopic.php?t=1253

Cheers,

- Boo


Boo, the link you posted is one to this article... I think you copied-and-pasted the wrong one, but I was unable to find the proper post you wanted to show. Maybe you can add it? Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Oct 26, 2004 11:46 am    Post subject: Reply with quote

Oops. Too late at night...

Fixed above.

Cheers,

- Boo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group