Exceptions thrown in Tutorial

Problems building or running the engine, queries about how to use features etc.
Andrew123
Gnoblar
Posts: 2
Joined: Thu Jan 27, 2005 12:50 pm

Exceptions thrown in Tutorial

Post by Andrew123 »

Hi I've just started to look at OGRE and have tried to run one of the tutorials but am having some problems.

I've built OGRE sucessfully and have all the dependencies.
I'm using VS .NET 2003.

Im tring to run the tutorial at :
http://centaurforce.sourceforge.net/Ogr ... rial_2.htm

I've followed the tutorial exactly and it seems to run fine in debug mode but I have the following problems otherwise when running it:

1. In Release mode I get an "Assertion of (ms_Singleton) failed". This seems to have been mentioned in the thread http://www.ogre3d.org/phpBB2/viewtopic. ... +exception but I am still unsure as to why it would only happen in Release mode.

2. The escape key does not seem to exit the application, even though the code would seem to support this.

3. When running the application from within VS .NET 2003, the configuration screen contains no items in the drop down boxes.

Has anyone had any experience with these problems in this tutorial?

Thanks

Andrew
User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

ok, the code in this tutorial has some bugs :oops:

I'm gonna fix this up and add it to the wiki hopefully this week.

fix 1:

Code: Select all

Inside the loop:
while (i.hasMoreElements())
{
	type = i.peekNextKey();
	arch = i.peekNextValue();

	Ogre::ResourceManager::addCommonArchiveEx(arch, type);

	i.getNext(); //<<<< ADD THIS
}
That should fix the other errors too, as it looks as if you were just stuck in the infinate loop that's happenning there :\
phear hingo

My Webpage
Andrew123
Gnoblar
Posts: 2
Joined: Thu Jan 27, 2005 12:50 pm

Post by Andrew123 »

Thanks Robomanic,

I tried adding "i.MoveNext();" would that have helpded at all?

Very nice tutorial btw... I got it compiled and linked without any problems at all

Andrew
User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

probably, but i don't know whether or not moveNext changes the value of i too, i'd have to check that ;)
phear hingo

My Webpage