[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
SloGameDev.net • Poglej temo - Sproščanje pomnilnika??

Sproščanje pomnilnika??

Vsi tehnični vidiki izdelovanja iger - programiranje vseh vrst in oblik, modeliranje, animacija, risanje, dizajn, grafika, glasba in zvok, umetna inteligenca, matematika, fizika itd.

Sproščanje pomnilnika??

OdgovorNapisal/-a Avatar » Po Feb 10, 2003 10:34 pm

Recimo, da se pogram izvaja nekaj časa in različne spremenljivke dobijajo med tem različne vrednosti. Kako bi naredil, da bi v določenem trenutku vse spremenljivke izgubile svojo vrednost oziroma bi dobile začetne vrednosti. Upam da me razumete na kaj mislim. Na enem forumu sem zasledil neke besede kot so 'sproščanje pomnilnika'. A je to to?

Programiram v Delphiju. Tako bi vas prosil če poznate kakšen podprogram, ki bi mi to storil v Delphiju.
Avatar
novinec
novinec
 
Prispevkov: 2
Pridružen: To Jan 21, 2003 11:50 pm

OdgovorNapisal/-a Firestar » Po Feb 10, 2003 10:58 pm

Ni mi najbolj jasno, kaj zelis narediti...spremenljivke zelis postaviti na neko default vrednost? a ni to nekaj v stilu i := 12; ? Ze dolgo tega, kar sem v pascalu delal, pa vseeno. Ce pa mislis, kako sprostiti alociran kos pomnilnika, pa saj mora imeti tudi Delphi nek delete operator (Dispose() ali nekaj podobnega, al FreeMem()). Ne vem, ce sem kaj dosti pomaga (najbrz sploh nisem), pa vendar bolj natancno opisi, v cem imas pravzaprav problem. Verjetno ne zelis napisati garbage-collectorja za Delphi, ali pac?
Uporabniški avatar
Firestar
poznavalec
poznavalec
 
Prispevkov: 173
Pridružen: Pe Jan 17, 2003 11:24 am
Kraj: Maribor

OdgovorNapisal/-a Kavan » To Feb 11, 2003 12:47 am

Verjetno misliš da bi se nekako spremenljivke postavile v stanje kot so bile ob zagonu. Sicer Delphi-ja ne poznam ampak se mi zdi da kaj takega ni možno. Enostavno moraš to narediti "na roke" in vsako spremenljivko posebej nastaviti na željeno vrednost.
Slika
Kavan
inštruktor
inštruktor
 
Prispevkov: 314
Pridružen: Pe Jan 10, 2003 12:57 pm
Kraj: Los Angeles

OdgovorNapisal/-a hugoboss » Ne Feb 16, 2003 12:13 pm

Memory dump kompletnega programa na zacetku naredis, nato pa ga vedno loadas od tam dalje... ;)

Malo bolj resno: Naredi funkc. ki ti inita vse spremenljivke na kar pac hoces...
Ali pa: vsem spremenljivkam dodeli pomnilnik po vrsti iz velikega kosa, ko jih hoces nastavit, pa na ta kos pomnilnika skopiraj same nicle oz. kaj pac zelis...
hugo2me@hotmail.com

Linux & Quake & Final Fantasy RULZ!
School SUX!
Uporabniški avatar
hugoboss
poznavalec
poznavalec
 
Prispevkov: 189
Pridružen: So Jan 11, 2003 9:57 pm


Vrni se na Izdelovanje iger

Kdo je na strani

Po forumu brska: 0 registriranih uporabnikov in 0 gostov

cron