A few BetaGUI questions...

Dodzey

17-12-2006 23:43:16

Hey,

First off, congrats regarding NxOgre, it's awesome.

Could you point me in the direction of the latest version of BetaGUI.
I'm using the one found at http://get.nxogre.org/betagui/ and i'm not sure if that's the latest one?

Secondly, this throws an error...

BetaGUI::GUI *mGUI = new BetaGUI::GUI("", "LucidaSans",10);
BetaGUI::Window *window = mGUI->createWindow(Vector4(100,100,300,100), "bgui.window", BetaGUI::RESIZE_AND_MOVE, "TestName");


The error is...
Unhandled exception at 0x7c812a5b in GameEngine.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f398..

What have I done wrong?


EDIT --> If I set the window type to NONE instead of RESIZE_AND_MOVE, the window displays ok.

Thanks,
Dodzey

betajaen

18-12-2006 00:18:28

Are you sure you have the betagui zip on the Wiki page "installed" and set up in the resources properly.

If not the crash is related to Ogre not finding the material "bgui.window" or, "bgui.titlebar" or "bgui.resize", etc.

Dodzey

18-12-2006 00:46:23

Yes, I load them, and according to the ogre log, they load properly. It seems strange that if I use BetaGUI::NONE as the window type it works fine, whereas any other (RESIZE, MOVE, RESIZE_AND_MOVE) causes the crash, but i guess that would be because it kind find the materials you mentioned, i'll keep on trying things.

Thanks,
Dodzey