Wrecked Games
September 05, 2010, 04:12:06 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: We're just that awesome.
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: Get error on createDefinedTexture(...)  (Read 1268 times)
plucked
Newbie
*
Posts: 2


View Profile
« on: June 05, 2008, 06:06:59 AM »

Hi,

i get an error when I want to define the texture of the videocontroller. Here is my code:

Code:
videoController_ = static_cast<Ogre::TheoraVideoController*>(Ogre::ExternalTextureSourceManager::getSingleton().getExternalTextureSource("ogg_video"));
videoController_->setInputName( "ingame.ogg" );
videoController_->setPlayMode(Ogre::TextureEffectPlay_ASAP);
videoController_->setTextureTecPassStateLevel(0, 0, 0);

Ogre::MaterialPtr matPtr = Ogre::MaterialManager::getSingleton().getByName("Examples/TheoraVideoPlayer/Play");

if (matPtr.isNull())
{
matPtr = Ogre::MaterialManager::getSingleton().create("Examples/TheoraVideoPlayer/Play", "General");
}

matPtr->getTechnique(0)->getPass(0)->createTextureUnitState();

videoController_->createDefinedTexture("Examples/TheoraVideoPlayer/Play", "General"); // <--- CRASH!!
Ogre::TheoraMovieClip* clip_ = videoController_->getMaterialNameClip("Examples/TheoraVideoPlayer/Play");


The message I get is: "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with on calling convention with a function pointer declared with a different calling convention."

The programm hold at this line in the TheoraVideoDriver.cpp:

Code:
Line 135: mTexture = TextureManager::getSingleton().loadImage( sTextureName, sGroupName, m_Image, TEX_TYPE_2D, 0, 1.0f );

I compiled theora without errors, what do I wrong?
Logged
plucked
Newbie
*
Posts: 2


View Profile
« Reply #1 on: June 09, 2008, 06:57:00 AM »

thank you for no help  Kiss
Logged
pjcast
Administrator
Veteran
*****
Posts: 2544



View Profile WWW
« Reply #2 on: June 09, 2008, 11:27:20 AM »

Sorry, this plugin is no longer supported, so do not expect fast (or even any replies at all). However, it should nevertheless function fine. That error is nothing to do with the plugin and simply means the stack got corrupted and/or not cleaned up right when returning from a function call. This can be caused by mixing debug/release libraries, or mixing fastcall/stdcall/cdecl etc calling conventions when not expected.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!