[BUG] CEGUI 0.7.1 SDK for VC9, release DLLs using debug CRT

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Inverness
Just popping in
Just popping in
Posts: 3
Joined: Fri Nov 20, 2009 23:33

[BUG] CEGUI 0.7.1 SDK for VC9, release DLLs using debug CRT

Postby Inverness » Sat Nov 21, 2009 00:38

The problem is that the CEGUI 0.7.1 solution file for Visual Studio 2008 (VC9) is using the Multi-threaded Debug DLL for the ReleaseWithSymbols configuration. This causes _DEBUG to be defined which results in a release version of CEGUIBase.dll using the debug runtime (not for redistribution) and loading debug versions of dynamic modules by appending _d to the module name. This results in a ripple effect of errors as the debug modules load debug versions of their dependencies, this ultimately results in a crash as the debug XML parser calls getSingleton() from CEGUIBase_d.dll which is loaded alongside CEGUIBase.dll.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: [BUG] CEGUI 0.7.1 SDK for VC9, release DLLs using debug CRT

Postby CrazyEddie » Thu Dec 03, 2009 10:17

I didn't look at the SDKs to confirm (or not) that the release files are linked incorrectly, though I can confirm that using a default, unmodified premake will result in _DEBUG usage for the ReleaseWithSymbols config. This is something we're aware of and are currently considering a customised premake executable which adds options to fix this issue (I did a proof of concept prior to the 0.7.1 release, though AFAIK this was not used for generating the final project / solution files).

CE.

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:

Re: [BUG] CEGUI 0.7.1 SDK for VC9, release DLLs using debug CRT

Postby scriptkid » Sat Jan 30, 2010 11:10

Hi,

The SDKs on the Download page are fixed. By using a customised premake.exe, the ReleaseWithSymbols configuration is now as expected:

-No optimisations
-Program database (no edit and continue)
-Multitreaded DLL

To avoid the overwriting of the regular Release files (which was another issue), these files are build into sub directories ('bin/ReleaseWithSymbols' and 'lib/ReleaseWithSymbols'). All other configs still link into 'bin' and 'lib'. Note that the V7 branch doesn't do this yet, the premake updates need to be applied to the svn premake.exe yet.

A bit late, but at least we have this fixed now for future SDKs in advance ;)
Check out my released snake game using Cegui!


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 4 guests