Kebal
29-01-2008 14:25:41
hi, as a few i see on this forum i am new to ogre and only recently started teaching myself programing with c#.
after a few teething problems with installing and getting Mogre to function, I've managed to follow the tutorials to tutorial number 5 where you write your own start up code instead of using the provided MogreFramework.dll.
The problem i now have is with the void DefineResources() method.
the code compiles without a problem, when you go to run it it errors out with a generic windows error. when you debug via VS it highlights
ResourceGroupManager.Singleton.AddResourceLocation(archName, typeName, secName);
that line of code and states theres a NullReference Exception.
I've double and tripple checked the code i have and its 100% the same as the provided code on the tutorial, the other tutorials function, i've copied the required files across and amended the resources.cfg file with the absolute paths to the resources.
Its probly a simple error on my part since i am new to programing in general, but the tut says you can compile and run its code so i am at a loss as to where i have gone wrong.
*EDIT* I thought i should add that the exe file dosnt get as far as generating a log file, so i cant get any info from there
any help would be much appreciated.
VS2005 SP1
MOGRE 0.2.2 for Ogre 1.4.3 (i know it isnt the latest but the latest wont function for me, spits out links to paths on c:\pryocon.... or something that has never existed.)
<Solved>
Apparently its only a problem in the debug dll files, if i use the release files it compiles and runs perfectly. the other tuts worked with the debug and release dll's.
after a few teething problems with installing and getting Mogre to function, I've managed to follow the tutorials to tutorial number 5 where you write your own start up code instead of using the provided MogreFramework.dll.
The problem i now have is with the void DefineResources() method.
the code compiles without a problem, when you go to run it it errors out with a generic windows error. when you debug via VS it highlights
ResourceGroupManager.Singleton.AddResourceLocation(archName, typeName, secName);
that line of code and states theres a NullReference Exception.
I've double and tripple checked the code i have and its 100% the same as the provided code on the tutorial, the other tutorials function, i've copied the required files across and amended the resources.cfg file with the absolute paths to the resources.
Its probly a simple error on my part since i am new to programing in general, but the tut says you can compile and run its code so i am at a loss as to where i have gone wrong.
*EDIT* I thought i should add that the exe file dosnt get as far as generating a log file, so i cant get any info from there
any help would be much appreciated.
VS2005 SP1
MOGRE 0.2.2 for Ogre 1.4.3 (i know it isnt the latest but the latest wont function for me, spits out links to paths on c:\pryocon.... or something that has never existed.)
<Solved>
Apparently its only a problem in the debug dll files, if i use the release files it compiles and runs perfectly. the other tuts worked with the debug and release dll's.