Page 1 of 1

CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Wed Nov 25, 2009 19:39
by Daevian
Hi, I've got a slight problem with running an directx10 app in release.
It's running beautifully in debug, but as soon as I'm switching to release, it complains about this CEGUIBase_d.dll...

I'm using VS2008 and I've switched the library dependencies to use the non-debug libraries (the ones without "_d" I presume)...
and if I place the dll by the release exe the program asserts on creating a scheme, font, everything, (Expressing: ms_Singleton)

The buildlog is quiet also... no reports about any faults...

Could it be a faulty lib-build?

Anyone have a clue?

Here's the log.. Thanks!

Code: Select all

25/11/2009 20:57:51 (Std)    
25/11/2009 20:57:51 (Std)    ---- Begining CEGUI System initialisation ----
25/11/2009 20:57:51 (Std)    CEGUI::ImagesetManager singleton created (01BBF068)
25/11/2009 20:57:51 (Std)    CEGUI::FontManager singleton created. (01BBF778)
25/11/2009 20:57:51 (Std)    CEGUI::WindowFactoryManager singleton created
25/11/2009 20:57:51 (Std)    CEGUI::WindowManager singleton created (01BCB9B8)
25/11/2009 20:57:51 (Std)    CEGUI::SchemeManager singleton created. (01BD97E0)
25/11/2009 20:57:51 (Std)    CEGUI::MouseCursor singleton created. (01BB2ED0)
25/11/2009 20:57:51 (Std)    CEGUI::GlobalEventSet singleton created. (01BC72A0)
25/11/2009 20:57:51 (Std)    CEGUI::WidgetLookManager singleton created. (01BC2528)
25/11/2009 20:57:51 (Std)    CEGUI::WindowRendererManager singleton created (01BCAD28)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'DefaultWindow' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'DefaultWindow' windows added. (01BCEBB8)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'DragContainer' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'DragContainer' windows added. (01BC1E68)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'ScrolledContainer' windows added. (01BDA270)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'ClippedContainer' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'ClippedContainer' windows added. (01BDA430)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (01BDA5F0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (01BDA7B0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (01BDA970)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (01BDAB30)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (01BDACF0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (01BDAEB0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (01BDB070)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (01BDB230)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (01BDB3F0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (01BDB5B0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (01BDB770)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (01BDB930)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (01BDBAF0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (01BDBCB0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (01BDBE70)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (01BDC030)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (01BDC1F0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (01BDC3B0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (01BDC570)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (01BDC730)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (01BDC8F0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (01BDCAB0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (01BDCC70)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (01BDCE30)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (01BDCFF0)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (01BDD298)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (01BDD458)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (01BDD618)
25/11/2009 20:57:51 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
25/11/2009 20:57:51 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (01BDD7D8)
25/11/2009 20:57:51 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
25/11/2009 20:57:51 (Std)    CEGUI::System singleton created. (01BBED68)
25/11/2009 20:57:51 (Std)    ---- CEGUI System initialisation completed ----
25/11/2009 20:57:51 (Std)    


Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Wed Nov 25, 2009 21:20
by Daevian
Fixed it! Only needed to rebuild all the libs and dlls. The zipped source code was the only one working, though.
Thanks anyways ^^;

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sun Nov 29, 2009 07:06
by Inverness
I had this same problem, it is because the release version was built with debug enabled which makes it use the Debug CRT and also makes it load debug dynamic modules by default.

It's like this: CEGUIBase.dll (built with debug) -> Load Expat dynamically: CEGUIExpat_d.dll -> Load dependencies: CEGUIBase_d.dll -> Errors because both release and debug DLL's are in memory.

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sat Dec 12, 2009 16:24
by Nitro
This just got me too. At least the stock VC9 release libraries are built with the _DEBUG flag enabled. Maybe the 0.7.1 release should be fixed or the download page should get a note like "release mode libraries are unusable, please build from source".

-Matthias

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sat Dec 12, 2009 17:33
by CrazyEddie
Hi,

I have not looked at the SDKs at this time, though it definitely seems like we messed up quite badly here :oops: I'll confirm for sure tomorrow and add a note to the downloads page as suggested. We'll then need to decide whether to do a re-issue or not :)

CE.

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sun Dec 13, 2009 11:32
by CrazyEddie
I have confirmed this mistake in both MSVC++ SDKs and have edited the announcement post and the wiki downloads page to indicate the MSVC++ SDKs should not be used for the reasons discussed in this topic.

Thanks for raising the issue guys, and sorry that this one slipped through :P

CE.

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sun Dec 13, 2009 15:44
by scriptkid
This is odd, when i open the SDK projects for 0.7.1 i see correct settings:

Image

Am i looking at the wrong settings?

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sun Dec 13, 2009 16:52
by CrazyEddie
I think the issue is/was that we ended up with the output from the "Release with Symbols" configuration overwriting the output from "Release" (because their output has the same name). This is backed up by the presence of the release version pdb files in the SDKs.

The issue of how this happens is related to the discussion we had about premake and it's automatic use of the debug c/c++ runtime when optimisations are disabled (which we have for the "Release with Symbols" config). This lead us to some other discussion about customising premake to allow us to get over that...

I propose we add options in config.lua to control the inclusion of certain configurations - definitely one for "Release with Symbols", maybe one for Static builds also - this way our SDK specific config file can exclude the existence of the "Release with Symbols" build config completely, thus eliminating the possibility of the above scenario (because even with a custom premake executable, we run the risk of shipping an unoptimised release build!).

CE.

Re: CEGUI D3DX10, release missing CEGUIBase_d.dll?

Posted: Sun Dec 13, 2009 17:09
by Nitro
Thanks for looking into this and adding the note!