Web Toolbar by Wibiya

System.Collections.Generic.KeyNotFoundException


A place to ask questions or discuss issues relating to implementing applications with Axiom. If you are unsure of where to post, post here.

Passer-by

Posts: 6

Joined: Wed Dec 01, 2010 11:00 am

Post Wed Dec 01, 2010 8:50 pm

System.Collections.Generic.KeyNotFoundException

Hi,
I am using Ubuntu 10.10 and compiling example code in Monodevelop. I have gotten rid of 2 fatal errors one being 'No platform manager' (by moving the Windows.Platform into my program's bin and added slimdx to the GAC to get rid of another, the dubugger also told me 'opentk.dll etc' not found but putting them in the bin cleared that out. But have no idea what to do with this one,

@ root.RenderSystem = root.RenderSystems["OpenGL"]; //or OpenGL or Xna

I get the above title ie "key not found exception". Using Monodevelop's debugger, I see a key count of 0 in root.RenderSystems, however, I cleared (I thought) that error by adding 'Axiom.RenderSystems.OpenGL.OpenTK.dll' to the bin. Monodevelop has no other 'not loaded dll' in it's debug output window only the generic 'hello world' that I use
to make sure it is working.

Sorry so long, but any suggestions. I mean what could go wrong mixing assemblies :)

p.s. Thought I'd paste my gamelog too. Thanks.
[07:41:44] *********Axiom 3D Engine Log *************
Copyright Copyright (C) 2003-2009 Axiom Rendering Engine Project Team.
Version: 0.8.0.0
Operating System: Unix 2.6.35.23
.Net Framework: 2.0.50727.1433

[07:41:44] *-*-* Axiom Intializing
[07:41:44] Creating resource group General
[07:41:44] Creating resource group Internal
[07:41:44] Creating resource group Bootstrap
[07:41:44] Creating resource group AutoDetect
[07:41:44] SceneManagerFactory for type 'DefaultSceneManager' registered
[07:41:44] Registering ScriptLoader for patterns *.program *.material
[07:41:44] Registering ResourceManager for type Material
[07:41:44] Registering ResourceManager for type Mesh
[07:41:44] Registering ResourceManager for type Skeleton
[07:41:44] Registering ScriptLoader for patterns *.particle
[07:41:44] Win32 Platform Manager Loaded.
[07:41:44] Registering ScriptLoader for patterns *.fontdef
[07:41:44] Registering ResourceManager for type Font
[07:41:44] Registering ScriptLoader for patterns *.overlay
[07:41:44] OverlayElementFactory for type 'BorderPanel' registered.
[07:41:44] OverlayElementFactory for type 'TextArea' registered.
[07:41:44] OverlayElementFactory for type 'Panel' registered.
[07:41:44] ArchiveFactory for archive type ZipFile registered.
[07:41:44] ArchiveFactory for archive type Folder registered.
[07:41:44] Registering ResourceManager for type HighLevelGpuProgram
[07:41:44] Registering ScriptLoader for patterns *.compositor
[07:41:44] Registering ResourceManager for type Compositor
[07:41:44] OpenGL OpenTK Renderer requires OpenTK Platform Manager.
Parameter name: PlatformManager
at Axiom.Utilities.Contract.Requires (Boolean condition, System.String name, System.String message) [0x00000] in <filename unknown>:0
at Axiom.RenderSystems.OpenGL.Plugin.Initialize () [0x00000] in <filename unknown>:0
at Axiom.Core.PluginManager.LoadPlugin (Axiom.Core.ObjectCreator creator) [0x00000] in <filename unknown>:0
[07:41:44] Factory EntityFactory registered for MovableObjectType 'Entity'.
[07:41:44] Factory LightFactory registered for MovableObjectType 'Light'.
[07:41:44] Factory BillboardSetFactory registered for MovableObjectType 'BillboardSet'.
[07:41:44] Factory ManualObjectFactory registered for MovableObjectType 'ManualObject'.
[07:41:44] Factory BillboardChainFactory registered for MovableObjectType 'BillboardChain'.
[07:41:44] Factory RibbonTrailFactory registered for MovableObjectType 'RibbonTrail'.
Last edited by utne2K on Wed Dec 01, 2010 8:59 pm, edited 1 time in total.

Team Member
Team Member

Posts: 213

Joined: Tue Nov 17, 2009 1:56 pm

Post Wed Dec 01, 2010 8:58 pm

Re: System.Collections.Generic.KeyNotFoundException

Did you download from SVN, or did you get the binaries?

I think it may have changed since the time the binaries were released. (We really need to get another official release out)
Anyway, make sure you have Axiom.Platforms.OpenTK in your bin.

Passer-by

Posts: 6

Joined: Wed Dec 01, 2010 11:00 am

Post Wed Dec 01, 2010 9:28 pm

Re: System.Collections.Generic.KeyNotFoundException

Many thanks for the quick answer. It worked but now I have another :(

The Axiom window opens but then the exception is thrown that I do not have 'opengl.dll'. I do have 'opengl.so'.

Could I just copy it from Win7? Do I need to check Ubuntu; maybe Mono's sight. Would I have to ,eck, build it?
All the above lol.

Thanks again

Team Member
Team Member

Posts: 213

Joined: Tue Nov 17, 2009 1:56 pm

Post Wed Dec 01, 2010 9:49 pm

Re: System.Collections.Generic.KeyNotFoundException

no, you need to make sure you get the libtaoframework.

check out this tutorial for linux: http://axiom3d.net/wiki/index.php/From_ ... nderWindow

Passer-by

Posts: 6

Joined: Wed Dec 01, 2010 11:00 am

Post Thu Dec 02, 2010 1:00 am

Re: System.Collections.Generic.KeyNotFoundException

Thanks for the link.

I found that I had to adjust the opengl config (dllentry) file since my libopengl.so was just that and did not have a '.1' behind it.

<configuration>

<dllmap dll="opengl32.dll">

<dllentry os="linux" dll="libGL.so" />

<dllentry os="windows" dll="opengl32.dll" />

<dllentry os="osx" dll="/System/Library/Frameworks/OpenGL.framework/OpenGL" />

</dllmap>

<dllmap dll="glu32.dll">

<dllentry os="linux" dll="libGLU.so" />

<dllentry os="windows" dll="opengl32.dll" />

<dllentry os="osx" dll="/System/Library/Frameworks/OpenGL.framework/Libraries/libGLU.dylib" />

</dllmap>

</configuration>

Thanks again.

Return to General Q & A

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.