Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Running out of resources in Windows

Author
Message
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 7th Mar 2003 19:25
I was running DarkEdit, and testing out a simple program (press Execute in DarkEdit to run the program with DBLite, then exiting the DB program to go back to DarkEdit). I did this probably 50+ times over the course of the evening. I also used the Help feature in DarkEdit (which just fired up my browser - Phoenix). I had MilkShape running the whole time. The typical, editing a model, exporting it as .X, type a few commands into the DB program, run DBLite to try it out, then repeat.

Eventually, the system starting acting strangely (DarkEdit buttons started disappearing, starting getting strange errors about "can't write to canvas" from DarkEdit, DBLite saying it couldn't initialize DX8, etc.), so I checked My Computer -> Properties -> Performance (Win98SE) and low and behold - resources were at "
QuothTheRaven
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 8th Mar 2003 05:55
this happens to everyone. You see, the annoying thing about dark basic is that when you run it, in order to optomize it's performance it uses ALL AVALIABLE SYSTEM MEMORY, instead of only the memory it needs to run. So if you have programs running when you start db, it wont leech from them, but if you run programs while you have db running, they will compete for system rescources. I hate it too, I've lost an entire program to that quirk.

Darken the skies, we are god
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 8th Mar 2003 06:44
But if you quit DB, it would seem that it's not freeing up system resources correctly, right? I had quit all applications when I check the resource level in My Computer. It's okay if an application grabs all memory available for itself, *while it's running*... but it should give it up when it exits.

Can't they fix this completely unreasonable problem?

Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Mar 2003 01:58
well no it doesn't release the memory due to a bug, and as noted in ALOT of posts - we have bitched about it for almost 4years now ... and with the fact that i have a feeling that DB Std/Ehd is now considered done with we're just gonna have to put up with it.

but even still thats alot less runs that i get out of DB, you must have almost zero memory available

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 9th Mar 2003 06:44
You mean system RAM? I have 256MB. I haven't tried to reproduce it by just running DB and whating the resources go down... I guess it a moot point now, since you say they'll probably not going to fix it.

Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Mar 2003 07:07
256mb isn't a great deal by todays standards, and thats even less if you don't have a large enough Virtual Ram for page flipping ...
my notebook has 512Mb + 1.2Gb Page Flip and DB tends to only stick to the physical ram.

even still, with 256 you should still be getting a good 100-120 compiles before it starts bitching

here's a tip, if you don't want to reboot - find a game which uses DirectX, (Jedi Knight2 or Quake based games i've found are the best!) and run it ... it'll clear all the used ram that DarkBasic didn't evacuate because they release all unused ram unless a program will actively claim it - when DB proggies shut down they just leave things about.

But then again this is ONLY when you're developing, believe it or not it cleans itself nicely with exes

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 9th Mar 2003 07:20
Ahhhhh... that's very interesting - doesn't occur with the EXEs huh?!? Well, that's bane for DBLite users... but I guess if you are just running a finished creation for a single long session it's not big deal. At least when you make an EXE it won't trash your friends computer, just yours while your writing the thing! ;-P

Those are great tips! Thanks!

Login to post a reply

Server time is: 2026-06-11 03:38:47
Your offset time is: 2026-06-11 03:38:47