| View previous topic :: View next topic |
| Author |
Message |
TheHorst
Joined: 13 Apr 2006 Posts: 12
|
Posted: Thu Apr 13, 2006 10:20 pm Post subject: Memory problem |
|
|
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 ... |
|
| Back to top |
|
 |
weak
Joined: 13 Jan 2005 Posts: 114 Location: Vienna, Austria
|
Posted: Thu Apr 13, 2006 10:43 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
TheHorst
Joined: 13 Apr 2006 Posts: 12
|
Posted: Thu Apr 13, 2006 11:19 pm Post subject: |
|
|
| got it ... tks anyways ... |
|
| Back to top |
|
 |
|