Chinese Traditional
Dutch
English
French
German
Hebrew
Japanese
Russian
Language:
Advanced
Home
Forum
Board Index
Latest Activity
Help
Members
New Posts
IRC
Downloads
Games
Utilities
Music
TIMGUL Archives
Arcade
About
About CodeWalrus
Rules
Post Stats
Login
Register
Home
»
CodeWalrus
»
General
»
General Help & Troubleshooting
»
What causes "RAM leaks"?
We're on Discord!
Please join our server now
if you don't want to miss anything!
(More info)
| Join the UCC4 contest!
(More info)
Ads by CodeWalrus! Support us on Patreon with your ad here, right now!
WalrusIRC (More rooms available on
our Discord server
)
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: What causes "RAM leaks"? (Read 564 times)
0 Members and 1 Guest are viewing this topic.
Midnightas
New User
Join Date: Feb 2018
Location:
Posts: 7
Post Rating Ratio: +0/-0
Making hello worlds since 10.
What causes "RAM leaks"?
«
on:
February 05, 2019, 04:54:16 pm »
I am writing a simple game in ez80 assembly, and every single time I run the program, my calculator's free RAM goes down a
lot
.
I can run the game maybe 4-5 times before it runs out and a memory error occurs.
Is my program simply not deallocated from memory, if so, how do I get it to?
Short URL:
Logged
Midnightas
New User
Join Date: Feb 2018
Location:
Posts: 7
Post Rating Ratio: +0/-0
Making hello worlds since 10.
Re: What causes "RAM leaks"?
«
Reply #1
on:
February 07, 2019, 06:07:42 am »
It turned out to be me setting IY without saving the old value.
Short URL:
Logged
rowan_futurerave
Full User
Disabled shoutbox mode
Restricted (shoutbox)
Join Date: Aug 2018
Location:
Posts: 44
Post Rating Ratio: +0/-0
Gender:
Re: What causes "RAM leaks"?
«
Reply #2
on:
February 14, 2019, 09:44:16 pm »
I'm not sure about assembler, but in C and C++ memory leaks are caused by using the
calloc/malloc
routines (in C) or the
new
operator (in C++) without using corresponding calls to
free
(in C) or
delete
(in C++).
Short URL:
Logged
Calculators owned: TI-84 Plus CE-T, CASIO fx-CG50
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Home
»
CodeWalrus
»
General
»
General Help & Troubleshooting
»
What causes "RAM leaks"?
Short URL:
View all topic attachments
You can also use the following HTML or bulletin board code to share it on your page or forum signature!
[url=https://codewalr.us][img]https://codewalr.us/other/cwaffiliate.png[/img][/url]
Also do not forget to check our affiliates below.