Crash on getSingleton

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

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Wed Apr 11, 2007 15:30

Have you set the font as the default font?

Code: Select all

CEGUI::Font * font = CEGUI::FontManager::getSingletonPtr()->createFont("Iconified-12.font");
CEGUI::System::getSingletonPtr()->setDefaultFont(font);

Thats how I do it
Image
Image

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Wed Apr 11, 2007 18:54

The first font created will automatically be set as the default font

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Wed Apr 11, 2007 20:47

Then I got to admit, im out of ideas - unless im missing something obvious. Someone else has any idea?
Image

Image

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Wed Apr 11, 2007 20:52

To make sure that CEGUI is compiled fine, can you launch a cegui standard sample to see if that doesn't crash? If it crashes you probably have mixed project settings, such as linking debug- and release libs together or such. If the sampe(s) do run, can you try to set our sort-of default font?:

Code: Select all

FontManager::getSingleton().createFont("Commonwealth-10.font");


About fonts: .scheme files can also have fonts defined, which will be loaded automatically. You can remove them for the tests as well.

Good luck!

danharibo
Just popping in
Just popping in
Posts: 12
Joined: Tue Sep 19, 2006 15:05

Postby danharibo » Thu Apr 12, 2007 19:58

Still Crashes at that same line.

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Fri Apr 13, 2007 17:33

scriptkid wrote:can you launch a cegui standard sample to see if that doesn't crash?


Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests