Crystal Space
Welcome, Guest. Please login or register.
April 20, 2014, 12:43:49 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7598 Members
Latest Member: Tarafigueroa
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  CEGUI wrapper Error
« previous next »
Pages: [1] Print
Author Topic: CEGUI wrapper Error  (Read 2356 times)
Allked
Newbie
*
Posts: 8


View Profile Email
« on: September 03, 2009, 06:35:31 am »

The demo app ceguitest works fine in both debug and release mode,but my own demo doesn't,
The release mode works fine ,ScrollBar value are correct,but with debug mode It always stoped at code:  ScrollBartest->subscribeEvent(CEGUI::Scrollbar::EventScrollPositionChanged,
                                                                        CEGUI::Event::Subscriber(&Mytest::ScrollBartest_event, this)) when I am linking with:CEGUIBase-vc9.lib libcrystalspace.lib in debug mode

but linking with CEGUIBase-vc9_d.lib libcrystalspace_d.lib, I coundn't even use function like this:
Code:
cegui->GetSchemeManagerPtr ()->loadScheme(ice.scheme");   
the cegui.IsValid() return true;but cegui->GetSchemeManagerPtr () is not valid I guess.
the error in debug console says:
Assertion failed: ms_Singleton,file c:\source\cslib\libcegui\include\CEGUISingleton.h line 79
the debug preprocesser are:
CS_WIN32_CSCONFIG __CRYSTAL_SPACE__ _WINDOWS CS_SUPPORTS_MMX CS_HAVE_CAL3D WIN32 CS_BUILD_SHARED_LIBS CS_DEBUG _DEBUG
-------------------------------------
the lib I link in the debug mode:
CEGUIBase-vc9.lib libcrystalspace.lib dsound.lib dinput.lib ddraw.lib ode.lib vorbisfile.lib vorbis.lib cg.lib cgGL.lib libjpeg.lib libpng.lib bulletcollision-vc9_d.lib bulletdynamics-vc9_d.lib bulletmath-vc9_d.lib freetype2.lib ogg.lib opengl32.lib libmng.lib version.lib cal3d-vc9_d.lib zlib.lib libcrystalspace_directx_d.lib libcrystalspace_opengl_d.lib libcrystalspace_windows_d.lib

Alsow change CEGUIBase-vc9_d.lib libcrystalspace_d.lib are also not working as I described . I've tried only link CEGUIBase-vc9_d.lib libcrystalspace_d.lib or CEGUIBase-vc9.lib libcrystalspace.lib with no luck same thing happened.

 Am I linking something wrong? Thank you for your help.
Logged
Allked
Newbie
*
Posts: 8


View Profile Email
« Reply #1 on: September 03, 2009, 06:42:13 am »

By the way, the inialize code about cegui are directly copy from ceguitest demo. thankyou
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.199 seconds with 17 queries.