HELP I found a bug(or I think I found one)

BlitzMax Forums/BlitzMax Programming/HELP I found a bug(or I think I found one)

Sanctus(Posted 2006) [#1]

Well I have this code(some parts are taken out)
If i run it it gives me a "Unhandled Exception: Unhandled Memory Exception Eror"
Weir thing is that this error apears on drawimage(on the render from player type) but if I remove the Treelist.addlast thing it works ok
I also made a similar code witch works well

Please help me and tell me if this is a bug or my error


Dreamora(Posted 2006) [#2]
Problem is most likely:

For Local tree:Ttree = EachIn TreeList
			render()
		Next


I assume this should be tree.render() instead of recursively calling render on TGame again (-> endless loop)


Sanctus(Posted 2006) [#3]
Hye wath do you know... it works
Thx bud