Page 1 of 1

[SOLVED] SDK VC9 not working on "start without debug"?

Posted: Sun Sep 06, 2009 17:30
by zweifel
Hello guys!

I downloaded the CEGUI 0.6.2 SDK for VC9 and included it on my game. For a test I wrote the follwoing:

CEGUI::OpenGLRenderer* renderer = new CEGUI::OpenGLRenderer(0,window_width, window_height);
new CEGUI::System(renderer);

In linux it runs ok with both lines, so I think there is no problem related to them. But on windows, although it compiles, it only runs on "Start with Debug", when I try to run it with "Start without Debug" it crashes.

The log is as follows:

05/09/2009 01:23:38 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
05/09/2009 01:23:38 (Std) + Crazy Eddie's GUI System - Event log +
05/09/2009 01:23:38 (Std) + (http://www.cegui.org.uk/) +
05/09/2009 01:23:38 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

05/09/2009 01:23:38 (Std) CEGUI::Logger singleton created. (0110D7D8)
05/09/2009 01:23:38 (Std) ---- Begining CEGUI System initialisation ----
05/09/2009 01:23:38 (Std) CEGUI::ImagesetManager singleton created (01103510)
05/09/2009 01:23:38 (Std) CEGUI::FontManager singleton created. (0110B890)
05/09/2009 01:23:38 (Std) CEGUI::WindowFactoryManager singleton created
05/09/2009 01:23:38 (Std) CEGUI::WindowManager singleton created (011015C8)
05/09/2009 01:23:38 (Std) CEGUI::SchemeManager singleton created. (010BAFE8)
05/09/2009 01:23:38 (Std) CEGUI::MouseCursor singleton created. (011037B8)
05/09/2009 01:23:38 (Std) CEGUI::GlobalEventSet singleton created. (010BC090)
05/09/2009 01:23:38 (Std) CEGUI::WidgetLookManager singleton created. (010B2CD8)
05/09/2009 01:23:38 (Std) CEGUI::WindowRendererManager singleton created (0110DD10)
05/09/2009 01:23:38 (Std) WindowFactory for 'DefaultWindow' windows added. (6372F778)
05/09/2009 01:23:38 (Std) WindowFactory for 'DragContainer' windows added. (6372F818)
05/09/2009 01:23:38 (Std) WindowFactory for 'ScrolledContainer' windows added. (6372F8B8)
05/09/2009 01:23:38 (Std) WindowFactory for 'ClippedContainer' windows added. (6372F958)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (6372F9F8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (63730358)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (637303F8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (6372FB38)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (6372FA98)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (6372FBD8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (6372FC78)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (6372FD18)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (6372FEF8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (6372FDB8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (6372FE58)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (63730038)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (63730218)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (6372FF98)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (637300D8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (63730178)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (637302B8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (63730498)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (63730538)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Slider' windows added. (637305D8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (63730678)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (63730718)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (637307B8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (63730858)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (637308F8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (63730998)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (63730A38)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (63730AD8)
05/09/2009 01:23:38 (Std) WindowFactory for 'CEGUI/Tree' windows added. (63730B78)
05/09/2009 01:23:38 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
05/09/2009 01:23:38 (Std) CEGUI::System singleton created. (00C58598)
05/09/2009 01:23:38 (Std) ---- CEGUI System initialisation completed ----
05/09/2009 01:23:38 (Std) ---- Version 0.6.2 ----
05/09/2009 01:23:38 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based renderer module for CEGUI ----
05/09/2009 01:23:38 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
05/09/2009 01:23:38 (Std) ---- Scripting module is: None ----

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Mon Sep 07, 2009 07:47
by scriptkid
Hi and welcome :)

Can it be that there is a difference in startup-folder between running with and without debugger?

You don't get any errors in your Cegui logfile?

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Tue Sep 08, 2009 02:37
by zweifel
Thanks scriptkid...

I got some good and some bad news... the good one is that I got it to run under Ctrl + F5 (without debugger)!!!! =D
The bad news is that in order to run I had changed the CEGUIBase.lib to CEGUIBase_d.lib and
OpenGLGUIRenderer.lib to OpenGLGUIRenderer_d.lib.

Do you know some possible reason for everything to be running ok wit the _d libraries and not with the libraries without _d??? :shock:

Well, no error in the CEGUI log, as posted before :/...

I do not think it is anything related to the folders as I got it to run with the other libraries and the all of the libraries are present (I just copied the bin, include and lib directory of the SDK package)

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Tue Sep 08, 2009 07:35
by scriptkid
Okay, are you trying to debug a release build or a debug build? If you are creating a debug build, then you should use the '_d' libraries.

Also, to nag about the directories again :) How it the behavior when you just double-click your executable from your explorer?

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Wed Sep 09, 2009 23:06
by zweifel
I am trying to debug a release build and when I double click it works normally.

Thanks very much scriptkid! I happen to isolate the problem yesterday (I was unable to answer this post o.O, with some strange page error)... anyway to the good news!!

The non debug version of the CEGUI libraries worked well when I unset the _DEBUG and the Multi-threading Debug DL(I came to know that by setting this option, the _DEBUG turns out to be defined), but when one of those features are set, the executable gives an error, but only when not using the debug version (Ctrl + F5). Since the common difference from Ctrl+F5 to F5 is that the debug does not set variables to 0 in the Ctrl+F5, so the fail may be happening because of some undefined variables in CEGUI library when the _DEBUG definition is set.

The debug version works well when _DEBUG is set and when it is not...

thanks for all the active help... I think it is what is called SOLVED case :hammer:

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Thu Sep 10, 2009 08:07
by scriptkid
Hi,

I'm glad to hear that it works now :)

You might be aware of this, but in order to debug a release build, you don't have to use the _DEBUG and MT Debug DL. I think that just toggling RTTI on should do the trick.

Otherwise you are most likely suffering from linking to some debug libraries, maybe even some standard windows/c++ stuff, which might look at your _DEBUG also...

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Thu Sep 10, 2009 20:03
by zweifel
No, what is and where can I set RTTI, I am experienced with g++ and vi, but kinda new with VC9.

Yeh I was also linking to a mixture of debug and non debug libraries to top it off... :/ , I will be cleaning things up.

Re: CEGUI 0.6.2 SDK VC9 not working on "start without debug"?

Posted: Fri Sep 11, 2009 10:42
by scriptkid
Hi,

Okay the setting is 'C/C++ -> Languange -> Enable Run-time Type Info'. Set it to Yes.

Good luck :)