TV3D Memory Leak Problems.

BlitzMax Forums/BlitzMax Beginners Area/TV3D Memory Leak Problems.

kenshin(Posted 2010) [#1]
I'm having this line come up in my DebugLog whenever my program ends:
RESOURCE MANAGER : Couldn't unload the 3d device. Number of not unloaded objects : 2


This is when testing with the most basic scene with nothing loaded, just initialize the TV3D engine and then quit. A quick search turned up this. I'm using the latest version of the wrapper (approx Jan this year).

Here's a bit of code to show the problem.
SuperStrict
Import glimmer.tv3d65
Global TV3D:CTVEngine
Global TV3DWindow:CTVWindow
TV3D = CTVEngine.Create()
TV3D.SetDebugFile CurrentDir ( ) + "\Debug.txt"
TV3DWindow = CTVWindow.Create ( 640 , 480 , "" )
TV3D.Init3DWindowed ( TV3DWindow.hWnd, False )
TV3D.DisplayFPS ( True )

While ( TV3DWindow.AppQuit = False )

	If TV3DWindow.Update ( ) = True

		TV3D.Clear ( )
		TV3D.RenderToScreen ( )

	EndIf

Wend

TV3D.ReleaseAll ( )
TV3D = Null
TV3DWindow = Null
GCCollect
End


Anyone else using TV3D have this problem?


GfK(Posted 2010) [#2]
OT: Where did you download the TV3D module from? The link in gabriel's sig is dead.


Gabriel(Posted 2010) [#3]
I remember this. It's a bug in TV3D which Sylvain promised to fix at some point. I'm not certain if that ever happened, but if you can learn more from Sylvain or the TV3D team in general, it might help.

OT: Where did you download the TV3D module from? The link in gabriel's sig is dead.

No one told me :) I'm always happy to email it to anyone who wants it. Just drop me an email from an address that can receive a 4mb zip as an attachment, and I'll send it over. I'll look into a more permanent solution when I find out why my hosting packed up. Likely due to no one downloading, I would imagine.


GfK(Posted 2010) [#4]
Thanks! Check email!