1

Closed

Entity.CS : type init exception

description

12:53:56 Error TypeInitializationException The type initializer for 'Daybreak.Core.Scene.Entity' threw an exception.
Stack trace:
at Daybreak.Core.Scene.Entity.New(String name) at Daybreak.Core.Scene.SceneComposer.EntityFactory.CreateLightEntity(String name, Vector3 position, Types lightType, Vector4 color) in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Core\Scene\SceneComposer.cs:line 83 at Daybreak.Core.Scene.SceneComposer.CreateDefaultLight(Vector4 color) in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Core\Scene\SceneComposer.cs:line 402 at Daybreak.NovaGame.BuildScene() in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Nova\NovaGame.cs:line 103 at Daybreak.NovaGame.CreateScene() in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Nova\NovaGame.cs:line 58 at Daybreak.Core.Graphics.RenderHost.LoadGraphicsContent(Boolean loadAllContent) in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Core\Graphics\RenderHost.cs:line 274 at Microsoft.Xna.Framework.Game.Initialize() at Daybreak.Core.Graphics.RenderHost.Initialize() in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Core\Graphics\RenderHost.cs:line 153 at Microsoft.Xna.Framework.Game.Run() at Daybreak.Program.Main() in D:\gameDesign\XNA Sample\dbm-engine\Daybreak.Nova\Program.cs:line 56
Closed Aug 25, 2007 at 9:32 PM by raxxla
This issue is now fixed. see last commit

comments

fixitchris wrote Aug 16, 2007 at 6:07 PM

"We have too many Entity instances"

fixitchris wrote Aug 16, 2007 at 6:11 PM

workaround: if (_uniqueKey >= 10000)

raxxla wrote Aug 16, 2007 at 7:25 PM

thanks a lot fixitchris. we are working on it.

i will add you to the DBM dev team if you want..

fixitchris wrote Aug 20, 2007 at 1:09 PM

raxxla, contact me via email. I would like to be a part of the DBM team. --chris

wrote Aug 20, 2007 at 6:41 PM

wrote Aug 25, 2007 at 9:32 PM

wrote Feb 13, 2013 at 2:17 AM

wrote May 15, 2013 at 12:47 AM