in my project,there have socket recv thread,when recv some package,then go to processPackage
DWORD WINAPI ProcessThread(LPVOID params)
{
....
ProcessPackage(...);
}
ProcessPackage(...)
{
//when in here invoke createWindow method the programe is crash!!!!
WindowManager& winMgr = WindowManager::getSingleton();
Window* frame = winMgr.getWindow("Demo/Window");
Window* button = winMgr.createWindow("OgreTray/Button","test");
button->setSize(UVector2(cegui_absdim(50),cegui_absdim(50)));
button->setPosition(
UVector2(cegui_absdim(150),cegui_absdim(150)));
button->setProperty("Text", tagList->RoomVector[i].RoomName);
frame->addChildWindow(button);
}
why is crash!!!!! cegui dosn't support mulit-thread?
another thread to createWindow
Moderators: CEGUI MVP, CEGUI Team
Re: another thread to createWindow
CEGUI is not thread safe, you have to use synchronisation primitives and/or queues to make this work.
Re: another thread to createWindow
whatever you render platform base on DirectX or OpenGL or Opengl ES ,
these are support multi render content to make multi thread Render devices work.
I get this same problem when use cegui in IOS platform { Opengl ES 1.1 }, then to create multi render content for easy render thread to solove this problem.
sorry for my English , I'm Chinese.
these are support multi render content to make multi thread Render devices work.
I get this same problem when use cegui in IOS platform { Opengl ES 1.1 }, then to create multi render content for easy render thread to solove this problem.
sorry for my English , I'm Chinese.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 3 guests