Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, 1 invisible), 858 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Operative memory again [solved] #280565
07/23/09 11:46
07/23/09 11:46
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Jcl, please, do something...
While project wasnt so large, i just rebooted SED one or two times per some hours
Now project is lot bigger and Task Manager says:
SED, just launched - 21 Mb
SED, application launched for the first time - 207 Mb
SED, application is closed - 159 Mb

SED, application launched for the second time - 327 Mb
SED, application is closed - 281 Mb

and so on, so i must reboot SED every 5-10 minutes.. its impossible to work now...

In addition, i dont know, why application eats so many memory: i almost didnt add new models, just works on gameplay... what can you advice?

Last edited by VeT; 07/30/09 17:28.

1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #280574
07/23/09 12:16
07/23/09 12:16
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Does your project use any plugin dll's that maybe arent being "closed" by your project?


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Operative memory again [Re: EvilSOB] #280578
07/23/09 12:33
07/23/09 12:33
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
yep:
GSVector.dll - 516 Kb
Format_C.dll - 95 Kb


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #280595
07/23/09 13:32
07/23/09 13:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
When some part of your app causes memory problems, the first thing I'd do is finding out which part, and which function is responsible for that. For this, first strip down your app until the problem goes away, then add function after function until the memory problem appears again.

Re: Operative memory again [Re: jcl] #280598
07/23/09 13:34
07/23/09 13:34
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Heh... there are so many of them... can you add additionfl info about functions to engine_gettaskinfo() ?
For example, how many memory it eats ?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #280612
07/23/09 14:41
07/23/09 14:41
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
function main()
{
sys_exit("");
return 0;
}

replace your main function with this code, and check the memory usage of SED :-)

Re: Operative memory again [Re: TechMuc] #280613
07/23/09 14:44
07/23/09 14:44
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
The same as in my first post :P


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: TechMuc] #280614
07/23/09 14:49
07/23/09 14:49
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
just my own frightning memory-checking results..

NORMAL project start/restarts
Code:
no start: 12.760 MB
1: Start (running): 205
2: Close Engine   : 143 (!!!)
3: Start (running): 316
4: Close Engine   : 255



Project with replaced main function. no startup function existend
Code:
no start: 12.754 MB
1: Start (running): 154
2: Close Engine   : 138
3: Run again      : 265
4: Close again    : 249




EMPTY Project (just include acknex.h / default.c)
Code:
no start: 12 MB
1: Run Engine: 45 MB
2: Close Engine: 29 MB
3: Run Engine: 58 MB
4: Close Engine: 39 MB
5: Run Engine 65 MB
5: Close Engine: 49 MB



==> Even with an empty project (#include <acknex.h>\n#include<default.c> i also expierence a memory-increase of 10 MB per run.

ha gladfully I'm working with mvc++ smile

Re: Operative memory again [Re: EvilSOB] #280869
07/24/09 13:27
07/24/09 13:27
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Originally Posted By: EvilSOB
Does your project use any plugin dll's that maybe arent being "closed" by your project?


Anyway, what is the correct method of closing DLL's ?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: TechMuc] #280873
07/24/09 13:39
07/24/09 13:39
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Originally Posted By: TechMuc
function main()
{
sys_exit("");
return 0;
}

replace your main function with this code, and check the memory usage of SED :-)


BTW, i have only one "_startup" function for debug reasons... so why that code loads so many memory? In a sum, i have 164 Kb of code.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1