.create("TaharezLook.scheme"); throw exception

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

.create("TaharezLook.scheme"); throw exception

Postby umen » Thu Sep 22, 2011 13:56

Hi
i done all the static linking and the example compile and linked successfully
but now i have run time problem . with example that used to work before .

im getting :

Code: Select all

Unhandled exception at 0x7c812a5b in glsample.exe: Microsoft C++ exception: CEGUI::InvalidRequestException at memory location 0x0012deec..


on this function :

Code: Select all

Scheme& Scheme_xmlHandler::getObject() const
{
    if (!d_scheme)
        CEGUI_THROW(InvalidRequestException("Scheme_xmlHandler::getObject: "
            "Attempt to access null object."));

    d_objectRead = true;
    return *d_scheme;
}


it seams that the d_scheme is never set , i also set breakpoint at :

Code: Select all

void Scheme_xmlHandler::elementGUISchemeStart(const XMLAttributes& attributes)
{
    const String name(attributes.getValueAsString(NameAttribute));
    Logger& logger(Logger::getSingleton());
    logger.logEvent("Started creation of Scheme from XML specification:");
    logger.logEvent("---- CEGUI GUIScheme name: " + name);

    // create empty scheme with desired name
    d_scheme = new Scheme(name);
}


but it never gets there ...
here is my example code what is wrong here :

Code: Select all

//
// GLSAMPLE.CPP
//  by Blaine Hodge
//
// Includes
#include <windows.h>
#include <gl/gl.h>
#include <CEGUI.h>
#include <RendererModules/OpenGL/CEGUIOpenGLRenderer.h>
#define PATH_MAX 256
//#define CEGUI_DATAPATH "cegui/datafiles"
#define CEGUI_DATAPATH "H:/cpp/3d/glsample/cegui/datafiles"
GLuint   base;            // Base Display List For The Font Set
GLfloat   cnt1;            // 1st Counter Used To Move Text & For Coloring
GLfloat   cnt2;            // 2nd Counter Used To Move Text & For Coloring
 
// Function Declarations
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
void EnableOpenGL(HWND hWnd, HDC * hDC, HGLRC * hRC);
void DisableOpenGL(HWND hWnd, HDC hDC, HGLRC hRC);
 
// WinMain
// Win32 MessageProc callback
using namespace CEGUI;
bool d_mouseInWindow = false;
bool bCeguiRender = true;
CEGUI::OpenGLRenderer* d_renderer;
CEGUI::GeometryBuffer* d_fps_geometry;
WNDCLASS wc ;
HWND hWnd =NULL ;
HDC hDC =NULL ;
HGLRC hRC =NULL;
MSG msg;
BOOL quit = FALSE;
float theta = 0.0f;
 
char *getDataPathPrefix()
{
   static char dataPathPrefix[PATH_MAX];
   strcpy(dataPathPrefix,CEGUI_DATAPATH);
   return dataPathPrefix;
}
void mouseEnters()
{
    if (!d_mouseInWindow)
    {
        d_mouseInWindow = true;
        ShowCursor(false);
    }
}
void mouseLeaves()
{
    if (d_mouseInWindow)
    {
        d_mouseInWindow = false;
        ShowCursor(true);
    }
}
bool handleCloseFrame(const CEGUI::EventArgs&)
{
    using namespace CEGUI;
    FrameWindow * frameWindow = static_cast<CEGUI::FrameWindow*>(CEGUI::WindowManager::getSingleton().getWindow("InputNamewin"));
   frameWindow->destroy();
   bCeguiRender = false;
   ShowCursor(true);
    return true;
}
bool handleAddUserName(const CEGUI::EventArgs&)
{
    using namespace CEGUI;
   
     Editbox* idbox = static_cast<Editbox*>(WindowManager::getSingleton().getWindow("NewInputIDBox"));
     String sStr = idbox->getText();
     std::string sStlStr(sStr.c_str());
     idbox->setText("");
     FrameWindow * frameWindow = static_cast<CEGUI::FrameWindow*>(CEGUI::WindowManager::getSingleton().getWindow("InputNamewin"));
    frameWindow->destroy();
     bCeguiRender = false;
     ShowCursor(true);
   
    return true;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
               LPSTR lpCmdLine, int iCmdShow)
{
   
   
   int numSec = 100;            // number of strip sections
   int width  = 556, height = 556;
    int bpp, flags;
    int TWquit = 0;
   
    int n, numCubes = 30;
    float color0[] = { 1.0f, 0.5f, 0.0f };
    float color1[] = { 0.5f, 1.0f, 0.0f };
    float color[] = { 1, 0, 0 }; // strip color
    double ka = 5.3, kb = 1.7, kc = 4.1;
   
   
   
   // register window class
   wc.style = CS_OWNDC;
   wc.lpfnWndProc = WndProc;
   wc.cbClsExtra = 0;
   wc.cbWndExtra = 0;
   wc.hInstance = hInstance;
   wc.hIcon = LoadIcon( NULL, IDI_APPLICATION );
   wc.hCursor = LoadCursor( NULL, IDC_ARROW );
   wc.hbrBackground = (HBRUSH)GetStockObject( BLACK_BRUSH );
   wc.lpszMenuName = NULL;
   wc.lpszClassName = "GLSample";
   RegisterClass( &wc );
   
   // create main window
   hWnd = CreateWindow(
      "GLSample", "OpenGL Sample",
      WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE,
      0, 0, width, height,
      NULL, NULL, hInstance, NULL );
   
   // enable OpenGL for the window
   EnableOpenGL( hWnd, &hDC, &hRC );
   d_renderer = &CEGUI::OpenGLRenderer::bootstrapSystem();
   // clearing this queue actually makes sure it's created(!)
    d_renderer->getDefaultRenderingRoot().clearGeometry(CEGUI::RQ_OVERLAY);
     CEGUI::DefaultResourceProvider *drp =
      static_cast<CEGUI::DefaultResourceProvider *>
      (CEGUI::System::getSingleton().getResourceProvider());
   
   char* dataPathPrefix = getDataPathPrefix();
    char resourcePath[PATH_MAX];
   
 
    // for each resource type, set a resource group directory
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "schemes/");
    drp->setResourceGroupDirectory("schemes", resourcePath);
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "imagesets/");
    drp->setResourceGroupDirectory("imagesets", resourcePath);
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "fonts/");
    drp->setResourceGroupDirectory("fonts", resourcePath);
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "layouts/");
    drp->setResourceGroupDirectory("layouts", resourcePath);
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "looknfeel/");
    drp->setResourceGroupDirectory("looknfeels", resourcePath);
   /* sprintf(resourcePath, "%s/%s", dataPathPrefix, "lua_scripts/");
    drp->setResourceGroupDirectory("lua_scripts", resourcePath);*/
    sprintf(resourcePath, "%s/%s", dataPathPrefix, "xml_schemas/");
    drp->setResourceGroupDirectory("schemas", resourcePath);
    // set the default resource groups to be used
    CEGUI::Imageset::setDefaultResourceGroup("imagesets");
    CEGUI::Font::setDefaultResourceGroup("fonts");
    CEGUI::Scheme::setDefaultResourceGroup("schemes");
    CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeels");
    CEGUI::WindowManager::setDefaultResourceGroup("layouts");
    CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");
   
    // setup default group for validation schemas
    CEGUI::XMLParser* parser = CEGUI::System::getSingleton().getXMLParser();
    if (parser->isPropertyPresent("SchemaDefaultResourceGroup"))
        parser->setProperty("SchemaDefaultResourceGroup", "schemas"); 
 
    CEGUI::WindowManager &winMgr = CEGUI::WindowManager::getSingleton();
    SchemeManager::getSingleton().create("TaharezLook.scheme");  <----------------------HERE exception !!!!!
   System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
    DefaultWindow* root = (DefaultWindow*)winMgr.createWindow("DefaultWindow", "Root");
   System::getSingleton().setGUISheet(root);
   FrameWindow* wnd = (FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "InputNamewin");
   wnd->setProperty("AutoRenderingSurface", "false");
   
   root->addChildWindow(wnd);
   wnd->setPosition(UVector2(cegui_reldim(0.25f), cegui_reldim( 0.25f)));
   wnd->setSize(UVector2(cegui_reldim(0.5f), cegui_reldim( 0.5f)));
   wnd->setMaxSize(UVector2(cegui_reldim(1.0f), cegui_reldim( 1.0f)));
   wnd->setMinSize(UVector2(cegui_reldim(0.1f), cegui_reldim( 0.1f)));
   wnd->setText("Input User Name ");
   wnd->setCloseButtonEnabled(true);
   
   Editbox* ebox = static_cast<Editbox*>(winMgr.createWindow("TaharezLook/Editbox", "NewInputIDBox"));
    wnd->addChildWindow(ebox);
    ebox->setPosition(UVector2(cegui_reldim(0.10f), cegui_reldim( 0.32f)));
    ebox->setSize(UVector2(cegui_reldim(0.76f), cegui_reldim( 0.15f)));
   
    PushButton* btnOk = static_cast<PushButton*>(winMgr.createWindow("TaharezLook/Button", "PushButtonOk"));
    wnd->addChildWindow(btnOk);
    btnOk->setPosition(UVector2(cegui_reldim(0.80f), cegui_reldim( 0.850f)));
    btnOk->setSize(UVector2(cegui_reldim(0.15f), cegui_reldim( 0.100f)));
    btnOk->setText("Ok");
   
    PushButton* btnCncl = static_cast<PushButton*>(winMgr.createWindow("TaharezLook/Button", "PushButtonCncl"));
    wnd->addChildWindow(btnCncl);
    btnCncl->setPosition(UVector2(cegui_reldim(0.10f), cegui_reldim( 0.850f)));
    btnCncl->setSize(UVector2(cegui_reldim(0.15f), cegui_reldim( 0.100f)));
    btnCncl->setText("Cancel");
     
     
    wnd->subscribeEvent(FrameWindow::EventCloseClicked, Event::Subscriber(&handleCloseFrame));
   
    btnCncl->
        subscribeEvent(PushButton::EventClicked, Event::Subscriber(&handleCloseFrame));
   
     
    btnOk->
        subscribeEvent(PushButton::EventClicked, Event::Subscriber(&handleAddUserName));
 
   
   
   
   // program main loop
   while ( !quit )
   {
      
      // check for messages
      if ( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE )  )
      {
         
         // handle or dispatch messages
         if ( msg.message == WM_QUIT )
         {
            quit = TRUE;
         }
         else
         {
            TranslateMessage( &msg );
            DispatchMessage( &msg );
         }
         
      }
      else
      {
         
         // OpenGL animation code goes here
         
         glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
         glClear( GL_COLOR_BUFFER_BIT );
         
         
         glPushMatrix();
         glRotatef( theta, 0.0f, 0.0f, 1.0f );
         glBegin( GL_TRIANGLES );
         glColor3f( 1.0f, 0.0f, 0.0f ); glVertex2f( 0.0f, 1.0f );
         glColor3f( 0.0f, 1.0f, 0.0f ); glVertex2f( 0.87f, -0.5f );
         glColor3f( 0.0f, 0.0f, 1.0f ); glVertex2f( -0.87f, -0.5f );
         glEnd();
         glPopMatrix();
         
         
         
         
         
          /*glBindTexture(0);
         glUseProgram(0);
         glActiveTexture(GL_TEXTURE_0);*/
         if(bCeguiRender)
             CEGUI::System::getSingleton().renderGUI();
            
         SwapBuffers( hDC );
         
         theta += 1.0f;
         
      }
      
   }
   
   // shutdown OpenGL
   DisableOpenGL( hWnd, hDC, hRC );
   
   // destroy the window explicitly
   DestroyWindow( hWnd );
   
   return msg.wParam;
   
}
// Window Procedure
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
   
   
   
   
   switch (message)
   {
   
   case WM_CHAR:
        CEGUI::System::getSingleton().injectChar((CEGUI::utf32)wParam);
        break;
    case WM_MOUSELEAVE:
        mouseLeaves();
        break;
    case WM_NCMOUSEMOVE:
        mouseLeaves();
        break;
    case WM_MOUSEMOVE:
        mouseEnters();
        CEGUI::System::getSingleton().injectMousePosition((float)(LOWORD(lParam)), (float)(HIWORD(lParam)));
        break;
    case WM_LBUTTONDOWN:
        CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
        break;
    case WM_LBUTTONUP:
        CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
        break;
    case WM_RBUTTONDOWN:
        CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::RightButton);
        break;
    case WM_RBUTTONUP:
        CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::RightButton);
        break;
    case WM_MBUTTONDOWN:
        CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::MiddleButton);
        break;
    case WM_MBUTTONUP:
        CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::MiddleButton);
        break;
    case 0x020A: // WM_MOUSEWHEEL:
        CEGUI::System::getSingleton().injectMouseWheelChange(static_cast<float>((short)HIWORD(wParam)) / static_cast<float>(120));
        break;
 
   case WM_CREATE:
      return 0;
      
   case WM_CLOSE:
      PostQuitMessage( 0 );
      return 0;
      
   case WM_DESTROY:
      return 0;
      
   case WM_KEYDOWN:
      switch ( wParam )
      {
         
      case VK_ESCAPE:
         PostQuitMessage(0);
         return 0;
         
      }
      return 0;
   
   default:
      return DefWindowProc( hWnd, message, wParam, lParam );
         
   }
   
}
// Enable OpenGL
void EnableOpenGL(HWND hWnd, HDC * hDC, HGLRC * hRC)
{
   PIXELFORMATDESCRIPTOR pfd;
   int format;
   
   // get the device context (DC)
   *hDC = GetDC( hWnd );
   
   // set the pixel format for the DC
   ZeroMemory( &pfd, sizeof( pfd ) );
   pfd.nSize = sizeof( pfd );
   pfd.nVersion = 1;
   pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
   pfd.iPixelType = PFD_TYPE_RGBA;
   pfd.cColorBits = 24;
   pfd.cDepthBits = 16;
   pfd.iLayerType = PFD_MAIN_PLANE;
   format = ChoosePixelFormat( *hDC, &pfd );
   SetPixelFormat( *hDC, format, &pfd );
   
   // create and enable the render context (RC)
   *hRC = wglCreateContext( *hDC );
   wglMakeCurrent( *hDC, *hRC );
   
}
// Disable OpenGL
void DisableOpenGL(HWND hWnd, HDC hDC, HGLRC hRC)
{
   CEGUI::OpenGLRenderer::destroySystem();
   wglMakeCurrent( NULL, NULL );
   wglDeleteContext( hRC );
   ReleaseDC( hWnd, hDC );
}


User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: .create("TaharezLook.scheme"); throw exception

Postby CrazyEddie » Thu Sep 22, 2011 14:27

This is not an advanced help topic, so has been moved. Please try to post in the correct forum.

The likelihood is that nobody will be able to help you with this issue, because you have not posted the CEGUI.log file. Also, please confirm whether or not you are using unmodified CEGUI data files.

CE.

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

Re: .create("TaharezLook.scheme"); throw exception

Postby umen » Thu Sep 22, 2011 14:39

Thanks for the move to the Advanced Help
here is the log , and yes im using the original files from the downloaded CEGUI zip's

Code: Select all

22/09/2011 17:36:25 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

-+-+-+-+-+-+-+-+-+-+-+-+-+
22/09/2011 17:36:25 (Std)    +                     Crazy Eddie's GUI System - Event log       

             +
22/09/2011 17:36:25 (Std)    +                          (http://www.cegui.org.uk/)                       

 +
22/09/2011 17:36:25 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

-+-+-+-+-+-+-+-+-+-+-+-+-+

22/09/2011 17:36:25 (Std)    CEGUI::Logger singleton created. (09313D98)
22/09/2011 17:36:25 (Std)    
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    * Important:                                                                   *
22/09/2011 17:36:25 (Std)    *     To get support at the CEGUI forums, you must post

_at least_ the section *
22/09/2011 17:36:25 (Std)    *     of this log file indicated below.  Failure to do this will

result in no  *
22/09/2011 17:36:25 (Std)    *     support being given; please do not waste our time.   

                    *
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    * -------- START OF ESSENTIAL SECTION TO BE

POSTED ON THE FORUM       -------- *
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    ---- Version 0.7.5 (Build: Sep 22 2011 Static Debug

Microsoft Windows MSVC++ 9.0 32 bit) ----
22/09/2011 17:36:25 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer -

Official OpenGL based 2nd generation renderer module.  TextureTarget support

enabled via WGL_ARB_pbuffer. ----
22/09/2011 17:36:25 (Std)    ---- XML Parser module is: CEGUI::ExpatParser -

Official expat based parser module for CEGUI ----
22/09/2011 17:36:25 (Std)    ---- Image Codec module is: DevILImageCodec -

Official DevIL based image codec ----
22/09/2011 17:36:25 (Std)    ---- Scripting module is: None ----
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    * -------- END OF ESSENTIAL SECTION TO BE

POSTED ON THE FORUM         -------- *
22/09/2011 17:36:25 (Std)    

********************************************************************************
22/09/2011 17:36:25 (Std)    
22/09/2011 17:36:25 (Std)    ---- Begining CEGUI System initialisation ----
22/09/2011 17:36:25 (Std)    CEGUI::ImagesetManager singleton created

(09313C80)
22/09/2011 17:36:25 (Std)    CEGUI::FontManager singleton created. (09314708)
22/09/2011 17:36:25 (Std)    CEGUI::WindowFactoryManager singleton created
22/09/2011 17:36:25 (Std)    CEGUI::WindowManager singleton created

(0930EF78)
22/09/2011 17:36:25 (Std)    CEGUI::SchemeManager singleton created.

(09315648)
22/09/2011 17:36:25 (Std)    CEGUI::MouseCursor singleton created. (09303B40)
22/09/2011 17:36:25 (Std)    CEGUI::GlobalEventSet singleton created. (09307658)
22/09/2011 17:36:25 (Std)    CEGUI::AnimationManager singleton created

(09309B78)
22/09/2011 17:36:25 (Std)    CEGUI::WidgetLookManager singleton created.

(09308EE0)
22/09/2011 17:36:25 (Std)    CEGUI::WindowRendererManager singleton created

(003EB230)
22/09/2011 17:36:25 (Std)    CEGUI::RenderEffectManager singleton created

(093103E8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'DefaultWindow' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'DefaultWindow' windows added.

(09306220)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'DragContainer' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'DragContainer' windows added.

(09314820)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'ScrolledContainer'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'ScrolledContainer' windows added.

(093183B8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'ClippedContainer'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'ClippedContainer' windows added.

(09318578)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Checkbox'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added.

(09318738)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/PushButton'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/PushButton' windows

added. (093188F8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/RadioButton'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/RadioButton' windows

added. (09318AB8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Combobox'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Combobox' windows

added. (09318C78)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ComboDropList'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows

added. (09318E38)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Editbox' windows added.

(09318FF8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/FrameWindow'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows

added. (093191B8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ItemEntry'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added.

(09319378)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Listbox' windows added.

(09319538)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ListHeader'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ListHeader' windows

added. (093196F8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for

'CEGUI/ListHeaderSegment' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment'

windows added. (093198B8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Menubar' windows added.

(09319A78)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/PopupMenu'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows

added. (09319C38)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/MenuItem'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added.

(09319DF8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows

added. (09319FB8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows

added. (0931A178)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ProgressBar'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows

added. (0931A338)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows

added. (0931A4F8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Scrollbar'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added.

(0931A6B8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Slider' windows added.

(0931A878)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Spinner' windows added.

(0931AA38)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/TabButton'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/TabButton' windows added.

(0931ABF8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/TabControl'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/TabControl' windows

added. (0931ADB8)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Thumb' windows added.

(0931AF78)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added.

(0931B138)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added.

(0931B3E0)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/ItemListbox'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows

added. (0931B5A0)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/GroupBox'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added.

(0931B760)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'CEGUI/Tree' windows added.

(0931B920)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'HorizontalLayoutContainer'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'HorizontalLayoutContainer'

windows added. (0931BAE0)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'VerticalLayoutContainer'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'VerticalLayoutContainer' windows

added. (0931BCA0)
22/09/2011 17:36:25 (Std)    Created WindowFactory for 'GridLayoutContainer'

windows.
22/09/2011 17:36:25 (Std)    WindowFactory for 'GridLayoutContainer' windows

added. (0931BE60)
22/09/2011 17:36:25 (Std)    Window type alias named 'DefaultGUISheet' added for

window type 'DefaultWindow'.
22/09/2011 17:36:25 (Std)    CEGUI::System singleton created. (093138E8)
22/09/2011 17:36:25 (Std)    ---- CEGUI System initialisation completed ----
22/09/2011 17:36:25 (Std)    
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <G>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <I>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <L>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <W>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   Scheme_xmlHandler::elementStart: Unknown element

encountered: <F>
22/09/2011 17:36:27 (Error)   CEGUI::InvalidRequestException in file

h:\cpp\3d\cegui-0.7.5\cegui-0.7.5\cegui\src\ceguischeme_xmlhandler.cpp(96) :

Scheme_xmlHandler::getObject: Attempt to access null object.
22/09/2011 17:36:31 (Error)   CEGUI::InvalidRequestException in file

h:\cpp\3d\cegui-0.7.5\cegui-0.7.5\cegui\src\ceguischeme_xmlhandler.cpp(86) :

Scheme_xmlHandler::getName: Attempt to access null object.


User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: .create("TaharezLook.scheme"); throw exception

Postby CrazyEddie » Fri Sep 23, 2011 07:32

Ok, we can see from all those errors in the log that something is very wrong as regards to XML parsing. The issue is either going to be corrupted data files (somewhat unlikely if they are straight out of the .zip package) or an issue with the XML parser itself (in this case Expat). I would first try a different parser, like the one using the embedded version of TinyXML, in order to confirm that the data files are indeed good, and assuming that's the case, you would then need to investigate the way you recompiled the dependency libs, as I'm 99% sure that the issue will be there.

HTH

CE.

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

Re: .create("TaharezLook.scheme"); throw exception

Postby umen » Fri Sep 23, 2011 08:51

yeah im sure its something with the dependency libs. but what ....
also i know its something with the xml parser ( i guess ... )
also when i move back to the original libs , every thing is working .
how does i tell CEGUI to use different parser ? where can i configure it ? like using the tinyxml

UPDATE!
well ... i learning allot here .
first thing is Documention . there are missing stuff there like how to configure new xml parser .
i didn't found any where in the docs that you need to chanage the lua config script and build .
any way . my problem was expatxml lib somewhat is wasn't build right so i changed it to tinyxml and every thing (all-must .. )
worked.
Last edited by umen on Fri Sep 23, 2011 15:17, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: .create("TaharezLook.scheme"); throw exception

Postby Kulik » Fri Sep 23, 2011 14:10

0.7 CEGUI uses premake so in its config.lua or something like that.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests