ArcanumGame
26-09-2010 21:44:14
Hello there.
My application crashes, when I'm using OgreNewt.
(OgreNewt 2.0 with Ogre 1.7.1 on Windows 7 Prof. 64bit)
It's fully compiled (http://www.ogre3d.org/addonforums/viewtopic.php?f=4&t=11510&start=30).
Now I've tried to put that new Framelistener into my Game:
Compiling works, but when I'm launching the .exe, it crashes.
This code is the reason:
Why does this happen?
PS: BasicFrameListener from OgreNewt does not work.
I've added the (*.h) and (*.cpp) files to my solution and
added #include "OgreNewt_BasicFrameListener.h" to my
BaseApplicationEngine.h ...
Some strange error appeared, when I wanted to launch
and I just deleted the two lines of BasicFrameListener, and
it worked again.
The error is:
The application failed to initialize properly (0xc000007b). Click OK to terminate.
My application crashes, when I'm using OgreNewt.
(OgreNewt 2.0 with Ogre 1.7.1 on Windows 7 Prof. 64bit)
It's fully compiled (http://www.ogre3d.org/addonforums/viewtopic.php?f=4&t=11510&start=30).
Now I've tried to put that new Framelistener into my Game:
oid ArcanumEngineBase::createFrameListener(void)
{
Ogre::LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***");
OIS::ParamList pl;
size_t windowHnd = 0;
std::ostringstream windowHndStr;
mWindow->getCustomAttribute("WINDOW", &windowHnd);
windowHndStr << windowHnd;
pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
mInputManager = OIS::InputManager::createInputSystem( pl );
mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));
mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject( OIS::OISMouse, true ));
mMouse->setEventCallback(this);
mKeyboard->setEventCallback(this);
//Set initial mouse clipping size
windowResized(mWindow);
//Register as a Window listener
Ogre::WindowEventUtilities::addWindowEventListener(mWindow, this);
mTrayMgr = new OgreBites::SdkTrayManager("InterfaceName", mWindow, mMouse, this);
// mTrayMgr->showLogo(OgreBites::TL_CENTER);
mTrayMgr->hideCursor();
// create a params panel for displaying sample details
Ogre::StringVector items;
items.push_back("cam.pX");
items.push_back("cam.pY");
items.push_back("cam.pZ");
items.push_back("");
items.push_back("cam.oW");
items.push_back("cam.oX");
items.push_back("cam.oY");
items.push_back("cam.oZ");
items.push_back("");
items.push_back("Filtering");
items.push_back("Poly Mode");
mDetailsPanel = mTrayMgr->createParamsPanel(OgreBites::TL_NONE, "DetailsPanel", 200, items);
mDetailsPanel->setParamValue(9, "Bilinear");
mDetailsPanel->setParamValue(10, "Solid");
mDetailsPanel->hide();
mRoot->addFrameListener(this);
OgreNewt::BasicFrameListener* mOgreNewtListener;
mOgreNewtListener = new OgreNewt::BasicFrameListener( mWindow, mWorld, 120 );
}
Compiling works, but when I'm launching the .exe, it crashes.
This code is the reason:
mOgreNewtListener = new OgreNewt::BasicFrameListener( mWindow, mWorld, 120 );
Why does this happen?
PS: BasicFrameListener from OgreNewt does not work.
I've added the (*.h) and (*.cpp) files to my solution and
added #include "OgreNewt_BasicFrameListener.h" to my
BaseApplicationEngine.h ...
Some strange error appeared, when I wanted to launch
and I just deleted the two lines of BasicFrameListener, and
it worked again.
The error is:
The application failed to initialize properly (0xc000007b). Click OK to terminate.