Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Get error on createDefinedTexture(...)  (Read 1685 times)

plucked

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Get error on createDefinedTexture(...)
« 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: [Select]
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: [Select]
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
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Re: Get error on createDefinedTexture(...)
« Reply #1 on: June 09, 2008, 06:57:00 AM »

thank you for no help  :-*
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Get error on createDefinedTexture(...)
« 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