Assertion given when creating System under Direct3D 9

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

bottleneck
Just popping in
Just popping in
Posts: 2
Joined: Sun Feb 13, 2011 22:26

Assertion given when creating System under Direct3D 9

Postby bottleneck » Sun Feb 13, 2011 22:42

Hey! This is my first post on the official CEGUI forums! :)
To start of I would like to say I already have used CEGUI with Ogre3D but now I'm trying to compile it in Direct3D 9.

The following code gives a assertion (both the variables are defined in the .cpp file):

Code: Select all

      myRenderer = &CEGUI::Direct3D9Renderer::bootstrapSystem( d3ddevice );
      mySystem = &CEGUI::System::create(*myRenderer);


Assertion info:
Program: ...
File: c:\Cegui-0.7.5\cegui\include\ceguisingleton.h
Line: 73
Expression: !ms_Singleton

Any idea what the problem could be?

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

Re: Assertion given when creating System under Direct3D 9

Postby Kulik » Sun Feb 13, 2011 22:44

You are practically creating CEGUI::System twice.

Code: Select all

Direct3D9Renderer::booststrapSystem

already does all the work for you, please review the docs. http://www.cegui.org.uk/docs/current/re ... orial.html

bottleneck
Just popping in
Just popping in
Posts: 2
Joined: Sun Feb 13, 2011 22:26

Re: Assertion given when creating System under Direct3D 9

Postby bottleneck » Sun Feb 13, 2011 22:47

Yeah figured it out one minute after I posted it...

Thanks for the help. I have it working now.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 28 guests