Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff, TyRaNiD
-
TheHorst
- Posts: 12
- Joined: Thu Apr 13, 2006 10:11 pm
Post
by TheHorst »
i have coded a little app,
problem is, that it uses more an more memory, even if u do the same again ...
--> result, when memory is full, the app hangs ...
is there a way to clear the memory, and if can someone pls tell me how ...
i think this is caused by the pngs i am reloading ...
-
weak
- Posts: 114
- Joined: Thu Jan 13, 2005 8:31 pm
- Location: Vienna, Austria
Post
by weak »
most likely you're not freeing the memory allocated for the image data.
you should read a book/tutorial about dynamic memory allocation in c/c++ if you're not familiar with the concept.
-
TheHorst
- Posts: 12
- Joined: Thu Apr 13, 2006 10:11 pm
Post
by TheHorst »
got it ... tks anyways ...