Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
Offline bfox  
#1 Posted : Tuesday, December 27, 2011 8:19:01 PM(UTC)

Joined: 8/22/2011(UTC)
Posts: 170
Location: Moscow

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
How can I fix this warning? (

Program: TD v0.9.1.0
Modules: Graphic=OpenTK, Input=Windows, Audio=OpenTK, Video=, Physics=
Start Time: 2011-12-27 22:00:19
Platform: Windows, 4 CPU Cores, 32 bit (on 64 bit OS), Windows NT 6.2.8102.0, Resolution: 800, 480, VS: 2, PS: 2
User: bfoxandroid (BFOX-PC)

06.383 Warning: The screen 'Screen (Name=<DynamicCreated>, Type=UIScreen)' couldn't be disposed correctly
	at Delta.Scenes.Scene.Dispose()
	at Delta.Engine.Dynamic.DynamicModule.o8NepGgpj2PFKVZH27(System.Object )
	at Delta.Engine.Dynamic.DynamicModule.Dispose()
	at Delta.Engine.Dynamic.DynamicModule.o8NepGgpj2PFKVZH27(System.Object )
	at Delta.Engine.Dynamic.DynamicModule.Dispose()
	C:\code\DeltaEngine\Graphics\OpenTK\OpenTKGraphic.cs(374,4): at Delta.Graphics.OpenTK.OpenTKGraphic.Dispose()
	at Delta.Engine.Dynamic.DynamicModule.o8NepGgpj2PFKVZH27(System.Object )
	at Delta.Engine.Dynamic.DynamicModule.Dispose()
	at Delta.Engine.Application.Dispose()
	at Delta.Platforms.Windows.WindowsApplication.WGiTAtGIwKhmoabM3Vk(System.Object )
	at Delta.Platforms.Windows.WindowsApplication.Dispose()
	at Delta.Engine.Application.y8p7XDHvCO5EuXSMyC(System.Object )
	at Delta.Engine.Application.StartExecutionLoop()
	at Delta.Platforms.Windows.WindowsApplication.injCmGG2d83pQsp0EEn(System.Object )
	at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
	at Delta.Engine.Application.Start(Delta.Engine.Dynamic.DynamicModule initialModule)
	C:\code\DeltaEngine\Samples\TowerDefence\Program.cs(16,13): at TD.Program.Main()

test does not display an error

Edited by user Tuesday, December 27, 2011 8:25:21 PM(UTC)  | Reason: Not specified

Russian game developer.
Давайте делать игры в команде. Идет набор.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Saturday, December 31, 2011 1:58:13 PM(UTC)

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Your code looks good, but I cannot figure out why this warning was put there. It does not seem to affect anything (except not removing that screen from the scene before disposing). I commented the extra check out and it seems to work just fine.

Old code:

				if (screens.Contains(screen) == false)
						"The screen '" + screen + "' couldn't be disposed correctly");
				} // if

So this should not happen in v0.9.2 anymore. I hope that helps.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.048 seconds.