
My problem is:When I use the ogre renderer to show the sample(every one),it doesn't work.

Just after the constructor of CEGuiOgreBaseApplication,it comes the sampleApp->initialiseSample();
and then step into SchemeManager::getSingleton().create("TaharezLook.scheme");
next U xml_loader(xml_filename, resource_group);
....up to the fuction void ExpatParser::parseXMLFile(XMLHandler& handler, const String& filename, const String& /*schemaName*/, const String& resourceGroup); until the CEGUI::System::getSingleton().getResourceProvider()->loadRawDataContainer(filename, rawXMLData, resourceGroup); ok, continue step into.
Then
Code: Select all
void OgreResourceProvider::loadRawDataContainer(const String& filename,
RawDataContainer& output,
const String& resourceGroup)
{
String orpGroup;
if (resourceGroup.empty())
orpGroup = d_defaultResourceGroup.empty() ?
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME.c_str() :
d_defaultResourceGroup;
else
orpGroup = resourceGroup;
Ogre::DataStreamPtr input = Ogre::ResourceGroupManager::getSingleton().
openResource(filename.c_str(), orpGroup.c_str());
if (input.isNull())
throw InvalidRequestException(
"OgreCEGUIResourceProvider::loadRawDataContainer: Unable to open "
"resource file '" + filename + "' in resource group '" + orpGroup +
"'.");
Ogre::String buf = input->getAsString();
const size_t memBuffSize = buf.length();
unsigned char* mem = new unsigned char[memBuffSize];
memcpy(mem, buf.c_str(), memBuffSize);
output.setData(mem);
output.setSize(memBuffSize);
}
Here when I step out this function,then it's wrong!
Code: Select all
--- c:\users\harry\desktop\11\boost_1_42\boost\thread\win32\interlocked_read.hpp
#ifndef BOOST_THREAD_DETAIL_INTERLOCKED_READ_WIN32_HPP
#define BOOST_THREAD_DETAIL_INTERLOCKED_READ_WIN32_HPP
// interlocked_read_win32.hpp
//
// (C) Copyright 2005-8 Anthony Williams
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/detail/interlocked.hpp>
#include <boost/config/abi_prefix.hpp>
#ifdef BOOST_MSVC
extern "C" void _ReadWriteBarrier(void);
#pragma intrinsic(_ReadWriteBarrier)
namespace boost
{
namespace detail
{
inline long interlocked_read_acquire(long volatile* x)
{
663B14D0 push ebp
663B14D1 mov ebp,esp
663B14D3 sub esp,0CCh
663B14D9 push ebx
663B14DA push esi
663B14DB push edi
663B14DC lea edi,[ebp-0CCh]
663B14E2 mov ecx,33h
663B14E7 mov eax,0CCCCCCCCh
663B14EC rep stos dword ptr es:[edi]
long const res=*x;
663B14EE mov eax,dword ptr [x]
663B14F1 mov ecx,dword ptr [eax]
663B14F3 mov dword ptr [res],ecx
_ReadWriteBarrier();
return res;
663B14F6 mov eax,dword ptr [res]
}
The arrow is here:
long const res=*x;
663B14EE mov eax,dword ptr [x]
663B14F1 mov ecx,dword ptr [eax]
And VC said:Unhandled exception at 0x663b14f1 (CEGUIOgreRenderer_d.dll) in Sample_FirstWindow_d.exe: 0xC0000005: Access violation reading location 0xccccccd0.


The end part of CRGUI.log is:
Code: Select all
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Slider' windows added. (07665058)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (07665218)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (076653D8)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (07665598)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (07665758)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (07665918)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (07665BC0)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (07665D80)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (07665F40)
10/04/2010 04:12:41 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
10/04/2010 04:12:41 (Std) WindowFactory for 'CEGUI/Tree' windows added. (07666100)
10/04/2010 04:12:41 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
10/04/2010 04:12:41 (Std) CEGUI::System singleton created. (0107D768)
10/04/2010 04:12:41 (Std) ---- CEGUI System initialisation completed ----
10/04/2010 04:12:41 (Std)
No useful information...
Anyone knows it?


