lopemanc
22-02-2006 17:22:56
This may not be the right place to post, but it seemed like a good place to start.
I am new to C# and VS 2005 Express, and the answer is probally more related to that than directly to ODN.
I have tried to debug the Particle FX Demo, just to start to get a feel for ODN and debugging in this IDE. And I can get it to start the debugger and step through some code. But at a certain point it dies with the following:
I think this is because the copy that is being used is the one that is built in the ...ogreaddons\ogredotnet... path. At least that is my guess. The wiki said to copy the files to the OGRE SDK path, which I have and it runs fine there outside of debugging. But I guess I don't see how it can know to run the one I copied. Is there a setting somewhere or am I completely off track?
I am new to C# and VS 2005 Express, and the answer is probally more related to that than directly to ODN.
I have tried to debug the Particle FX Demo, just to start to get a feel for ODN and debugging in this IDE. And I can get it to start the debugger and step through some code. But at a certain point it dies with the following:
System.TypeInitializationException was unhandled
Message="The type initializer for 'OgreDotNet.OgreBindingsPINVOKE' threw an exception."
Source="OgreDotNet"
TypeName="OgreDotNet.OgreBindingsPINVOKE"
StackTrace:
at OgreDotNet.OgreBindingsPINVOKE.new_Root__SWIG_3()
at OgreDotNet.Root..ctor() in C:\SourceControl\ogreaddons\ogreaddons\ogredotnet\OgreNet\Root.cs:line 136
at OgreDotNet.ExampleApplication.Setup() in C:\SourceControl\ogreaddons\ogreaddons\ogredotnet\OgreNet\Custom\ExampleApplication.cs:line 69
at OgreDotNet.ExampleApplication.Start() in C:\SourceControl\ogreaddons\ogreaddons\ogredotnet\OgreNet\Custom\ExampleApplication.cs:line 56
at DemoParticleFX.ParticleFXApplication.Main(String[] args) in C:\SourceControl\ogreaddons\ogreaddons\ogredotnet\DemoParticleFX\ParticleFX.cs:line 89
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I think this is because the copy that is being used is the one that is built in the ...ogreaddons\ogredotnet... path. At least that is my guess. The wiki said to copy the files to the OGRE SDK path, which I have and it runs fine there outside of debugging. But I guess I don't see how it can know to run the one I copied. Is there a setting somewhere or am I completely off track?