memleak - I'm blind!

BlitzMax Forums/BlitzMax Programming/memleak - I'm blind!

Damien Sturdy(Posted 2007) [#1]
Hi all,

Can you see any obvious leaks in this code? I swear it's obvious but I just can't find it!!!

If you run it and watch taskman, you'll see it rise and rise and rise. This however doesn't get anyone excited.

Thanks for you help!




tonyg(Posted 2007) [#2]
	Local toimage2:TImage=LoadImage(toimage)
	Local fromimage2:TImage=LoadImage(fromimage)

GCMemalloced() wasn't showing any leak so it must have been something unGCed. As your code didn't specify an object type it was int (not covered by GC) so was taking the space each time and never being released.


Damien Sturdy(Posted 2007) [#3]
Oh, cheers. i'll take a look :)

[edit]

Thanks, thats great! :)


[edit]

In future, use superstrict. :)