Regular
Posts: 18
Joined: Thu Aug 13, 2009 5:31 am
Location: Istanbul Turkey
Problem - D3DRenderSystem.RestoreLostDevice()
We have been developing an axiom application, and recently I started to get the error below during runtime. I use windows xp, and my friend uses windows 7. However he does not get this message although we develop the project together using svn. Error occurs when i compile and try to run the program from VS2008. lets say every time I compile and run; %50 - %60 percent of my tryouts fail due to this error (I dont alter the code during tryouts of course). Sometimes i also get the same error if I switch to task manager, or resize my application window (c# form). Do you have any clues what's going on ?
Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Axiom.RenderSystems.DirectX9.D3DHardwareBufferManager.RecreateDefaultPoolResources() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DHardwareBufferManager.cs:line 137
at Axiom.RenderSystems.DirectX9.D3DRenderSystem.RestoreLostDevice() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderSystem.cs:line 2654
at Axiom.RenderSystems.DirectX9.D3DRenderWindow.Update(Boolean swapBuffers) in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderWindow.cs:line 1123
at Axiom.Graphics.RenderWindow.Update() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\Engine\Graphics\RenderWindow.cs:line 269
at Axiom.Graphics.RenderSystem.UpdateAllRenderTargets() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\Engine\Graphics\RenderSystem.cs:line 739
at Axiom.Core.Root.UpdateAllRenderTargets() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\Engine\Core\Root.cs:line 1026
at Axiom.Core.Root.RenderOneFrame() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\Engine\Core\Root.cs:line 904
at Axiom.Core.Root.StartRendering() in D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\Engine\Core\Root.cs:line 957
at Sampas.Sis3D.Core.Render.RenderManager.Start(Tessellator t, Loader l) in D:\source\Sis3D v2.0\Sampas\Sis3D\Core\Render\RenderManager.cs:line 484
PS : Note that i also get errors like this during coding, but if I press F5 to run the code they simply disappear :
Error 1 The call is ambiguous between the following methods or properties: 'Microsoft.DirectX.Vector4.Vector4()' and 'Microsoft.DirectX.Vector4.Vector4()' D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderSystem.cs 146 32 Axiom.RenderSystems.DirectX9
Error 2 The call is ambiguous between the following methods or properties: 'Microsoft.DirectX.Direct3D.Viewport.Viewport()' and 'Microsoft.DirectX.Direct3D.Viewport.Viewport()' D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderSystem.cs 831 26 Axiom.RenderSystems.DirectX9
Error 3 The call is ambiguous between the following methods or properties: 'Microsoft.DirectX.Matrix.Matrix()' and 'Microsoft.DirectX.Matrix.Matrix()' D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderSystem.cs 1722 22 Axiom.RenderSystems.DirectX9
Error 4 The call is ambiguous between the following methods or properties: 'Microsoft.DirectX.Direct3D.Material.Material()' and
'Microsoft.DirectX.Direct3D.Material.Material()' D:\source\Sis3D v2.0\Axiom\Projects\Axiom\Source\RenderSystems\DirectX9\D3DRenderSystem.cs 1832 23 Axiom.RenderSystems.DirectX9
Do you think the two problems related ? I have once installed Slim Direct X sdk (to use in OGRE). Is there any possibility that it may cause the problem ?
I have reinstalled dx sdks and my graphics driver. but nothing worked. Problem persists.
Thanks in advance.

