I have a problem to use OgreAL

netaumm

24-01-2007 11:06:18

Hi..

First...

Contratulations for the job!..

Second..

I started to use OgreAL now.
I obteined to compile..

But... when execute a application, i have a message...


Assertion Failed!

Program:..
File: e:\projects\ogrecvs\branches\dag...\ogreo...ger.cpp
Line: 40

Expression: ms_Singleon

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts



In log Ogre, no show none exception...

fragment my code


mSceneMgr = mRoot->createSceneManager( ST_GENERIC, "Game" );
soundManager = new OgreAL::SoundManager(mSceneMgr);


somebody can help me??

Ps - Sorry.. my english is poor!! :oops:

CaseyB

24-01-2007 17:04:25

Did the debugger point to that code? That assertion means that you are trying to get a singleton that has not been created yet. For example, if you were to callOgre::Root::getSingleton();without ever having callednew Ogre::Root();Is there anywhere in your code that you're calling getSingleton?

netaumm

25-01-2007 10:56:44

CasedBy..

Did the debugger point to that code? That assertion means that you are trying to get a singleton that has not been created yet. For example, if you were to call
Code:
Ogre::Root::getSingleton();
without ever having called
Code:
new Ogre::Root();
Is there anywhere in your code that you're calling getSingleton?


I'm not calling getSingleton...
How I do to call it??

How I call the method set to ms_Singleton??

I used the fragments...

Ogre::Root::getSingleton();


But the problem it continues :(


Thanks!! :lol:

CaseyB

25-01-2007 16:26:10

Are you linking to the correct version of the library? I mean are you building a release build and then trying to link to a debug dll?

netaumm

26-01-2007 11:36:34

Yes..

Problem resolved..

I compiled OgreAL in Debug... and application is Release...

Now compiled OgreAL in Release too...

Thanks!! :lol:

CaseyB

26-01-2007 14:36:43

Hehe, I had that same problem last night with Ogre and an app I am working on! That's how I guessed that! ;)