another thread to createWindow

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

Just popping in
Just popping in
Posts: 1
Joined: Fri Sep 16, 2011 01:54

another thread to createWindow

Postby dcboy » Fri Sep 16, 2011 02:04

in my project,there have socket recv thread,when recv some package,then go to processPackage

DWORD WINAPI ProcessThread(LPVOID params)

//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->setProperty("Text", tagList->RoomVector[i].RoomName);

why is crash!!!!! cegui dosn't support mulit-thread?

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

Re: another thread to createWindow

Postby Kulik » Fri Sep 16, 2011 09:39

CEGUI is not thread safe, you have to use synchronisation primitives and/or queues to make this work.

Just popping in
Just popping in
Posts: 2
Joined: Mon Mar 26, 2012 14:40

Re: another thread to createWindow

Postby super999 » Tue Oct 09, 2012 02:55

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.

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 4 guests