Search found 29 matches

by Tonyx97
Wed Sep 23, 2015 18:54
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

I don't know how to explain the problem properly, forget ToString, the problem is when the argument 255 is passed to ToHex function it crashes. No more information about it. I think is something related with the debug configuration or something because everything works nice in Release build except s...
by Tonyx97
Wed Sep 23, 2015 13:28
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

I don't use to check callstacks and similar debug stuff. The value is passed it's 0. I've fixed ToString function, now the problem is on ToHex: CEGUI::String ToHex(int value) { if (value == 0) return "FAIL"; ostringstream stream; stream << std::hex << value; if (value < 16) return "0&...
by Tonyx97
Wed Sep 23, 2015 12:37
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

There are 2 function which maybe you want to check it out: CEGUI::String ToString(float value, string type) { if (type == "float") return to_string(value); else if (type == "int") return to_string((int)value); } CEGUI::String ToHex(int value) { ostringstream stream; stream << std...
by Tonyx97
Mon Sep 21, 2015 18:40
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

I think I loaded all symbols but I'm still getting errors with the crash. KernelBase.dll!_RaiseException@16() Unknown [External Code] > CEGUIBase-0.dll!CEGUI::String::grow(unsigned int new_size) Line 63 C++ CEGUIBase-0.dll!CEGUI::String::assign(const std::basic_string<char,std::char_traits<char>,st...
by Tonyx97
Mon Sep 21, 2015 13:54
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

Yes I'm using Release but is there only way to get my engine works... When I compile my project as Debug it crashes when the GLUT Windows opens. The exception it throws is First-chance exception at 0x76F4C42D in Classic Engine.exe: Microsoft C++ exception: std::length_error at memory location 0x0018...
by Tonyx97
Sun Sep 20, 2015 20:48
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

Re: OpenGL display size.

It crashes when I press Fullscreen toggle key: GUI.Initialized = false; ///DISABLE GUI RENDERING WHILE CHANGING SCREEN SIZE glutReshapeWindow(1920, 1080); GL.Perspective(1920, 1080); CEGUI::System::getSingleton().notifyDisplaySizeChanged(CEGUI::Sizef(1920, 1080)); glutFullScreen(); GUI.Initialized =...
by Tonyx97
Sun Sep 20, 2015 13:41
Forum: Help
Topic: OpenGL display size.
Replies: 16
Views: 13431

OpenGL display size.

Hello guys, I realized after integrating CEGUI to my engine that I can't use fullscreen mode, when I try to use fullscreen happens this: https://gyazo.com/d8b13ab160d1beec1d82730443a9c73a and this is the normal aspect https://gyazo.com/ccaae785f7db9ee882aa68705a613a1b how can I update the CEGUI Open...
by Tonyx97
Fri Sep 18, 2015 15:12
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

I've fixed the program just changing the function OnClick like this: bool OnClick(const CEGUI::EventArgs& args) { const CEGUI::MouseEventArgs& we = static_cast<const CEGUI::MouseEventArgs&>(args); CEGUI::String Sender = we.window->getName(); CEGUI::ItemListbox* CListbox = static_cast<CEG...
by Tonyx97
Fri Sep 18, 2015 14:21
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

Crash:
-1. Start program.
-2. Click on the right listbox.

Valid listbox instance:
-1. Start program.
-2. Click on the left listbox.
-3. You can click on right listbox without crash now, function OnClick will return the instance and everything belonging to the left listbox...
by Tonyx97
Fri Sep 18, 2015 13:48
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

Yes, If I click on the left one it gives me the output of the left listbox but not crashes of course, only crashes when I click right listbox first. If I click on left listbox it returns a valid listbox instance. How can I debug symbols as you said?
by Tonyx97
Fri Sep 18, 2015 11:31
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

And I already answered you Ident. It returns NULL if I click on the RIGHT Listbox first, that's why it crashes my program. Obviously I did a IF condition to check if is NULL or not, and yes, it's NULL if I click RIGHT Listbox first.
by Tonyx97
Fri Sep 18, 2015 10:19
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

This is the line 49:

Code: Select all

CEGUI::String ItemName = CListbox->getFirstSelectedItem()->getText();

This is the line 43:

Code: Select all

CListbox->addItem(static_cast<CEGUI::ItemEntry*>(item));

And this is the line 55:

Code: Select all

grid.AddItem("Item 1");
by Tonyx97
Fri Sep 18, 2015 10:03
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

Code: Select all

bool OnClick(const CEGUI::EventArgs& args)
{
   CEGUI::String ItemName = CListbox->getFirstSelectedItem()->getText();
   cout << "Gridlist: " << CListbox << " - Clicked Item: " << ItemName << endl;
   return true;
}
by Tonyx97
Fri Sep 18, 2015 09:53
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

I did it and here's the callstacks: > Classic Engine.exe!Gridlist::OnClick(const CEGUI::EventArgs & args) Line 49 C++ Classic Engine.exe!CEGUI::MemberFunctionSlot<Gridlist>::operator()(const CEGUI::EventArgs & args) Line 55 C++ CEGUIBase-0.dll!58f891e2() Unknown CEGUIBase-0.dll!58f8a814() Un...
by Tonyx97
Fri Sep 18, 2015 08:57
Forum: Help
Topic: [Solved] Events, buttons etc...
Replies: 31
Views: 22860

Re: Events, buttons etc...

When I read the link you sent to me I realized that my project was set on Release instead of Debug and now I guess it should work but it's worst, now it crashes when I create the whole GUI, the program is saying me that CEGUIBase-0.dll symbols were not loaded I don't know why... This is the exceptio...

Go to advanced search