free memory how??!

Just starting out? Need help? Post your questions and find answers here.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

free memory how??!

Post by doodlemunch »

hi how do u free memory ??
i now use freememory() but what is abut other memori i did not allocatet?
i see a program that it free memory how is tht done??!
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Any memory you did not specifically allocate should be handled by PureBasic. So you shouldn't need to worry about it.

However if the allocation was done outside of PureBasic (API call or dll or lib) then that method should also offer a release method.

Is that what you're looking for?
@}--`--,-- A rose by any other name ..
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

no i wantet to free memory like those proggies that u put "i wanna free 64mb" and u click "free"
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

lol, I was way off track! Sorry. :D

Actually, I think there is a thread/discussion here somewhere on memory optimisers or whatever they're called.
@}--`--,-- A rose by any other name ..
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

ah
i will look!
optimizer that culd be
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

no no i can not find anythin related
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Well... Here you go:

Allocate a lot of memory, free it, allocate it again.

HOW to allocate that amount of memory and really not just allocate but also use it..;

Code: Select all

test.s=Space(999999999)
Fire that off, wait some seconds (just a few), stop the program, start again wait eg 5 seconds, stop. Then see how much free mem you got :)
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

PB 6.21 beta, PureVision User
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Yeah!

I use this precious code a lot, when i need to free my mem :D
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

thx u!!
i want to buy pb so bad!!!! learnin wiht the demo is not fun
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: free memory how??!

Post by NoahPhense »

Yeah it's still in there forums.. But I wrote this a while back.

In 2003.. ;)

viewtopic.php?t=7959&postdays=0&postorder=asc&start=15

- np
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

i mades it compile but it does not work
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

doodlemunch wrote:my englissh is horribel i know SORRY im dutch and dyslexic how worstt can it goe??
More Broccoli?
Image
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

i thinks that wuld make me fart until i die
but perhap it culd be worst
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Post Reply