Page 1 of 1
problem with built .dll
Posted: Thu Jan 08, 2009 11:16
by maori
Hi Guys
had to do a complete o/system reinstall yesterday
so i decided to get the latest cegui so downloaded
CEGUI 0.6.2b Library Source
and the dependency pack
CEGUI 0.6.2b Binary Downloads for Microsoft Visual C++ 9 (2008)
as i got my myself the vs2008 pro for xmas
and have the following sdk's
Microsoft DirectX SDK (August 2008)
Microsoft Platform SDK for Windows Server 2003 R2
and update SP1 for vs2008
compiled CEGUI and placed the required .dll's in my applications directory but it gave me the following error when trying to start the newly compiled exe
Unhandled exception at 0x02132639 (CEGUIBase_d.dll) in MyExe.exe: 0xC00000FD: Stack overflow.
any one able to point me in the right direction of where i may have missed something
TIA
Posted: Thu Jan 08, 2009 14:52
by CrazyEddie
Hi,
The only cause I can think of at the moment is one relating to recursive event calls - meaning what you're doing in an event handler causes the event to re-fire prior to exiting the handler - at least this is the one that always bites me
Can you grab a callstack from the debugger at the point where you get the stack overflow? This should help narrow it down somewhat.
CE.
Posted: Thu Jan 08, 2009 15:03
by maori
heya CE
the line in the callstack is
> CEGUIBase_d.dll!std::_Iterator_base::_Orphan_me() Line 180 + 0x9 bytes C++
if you need a full callstack list is there an easy way to grab it all out ?
TIA
Posted: Thu Jan 08, 2009 19:55
by CrazyEddie
maori wrote:if you need a full callstack list is there an easy way to grab it all out ?
That would be more useful
I think you can click in the window and do Ctrl-A, Ctrl-C
HTH
CE.
Posted: Thu Jan 08, 2009 20:05
by maori
no probs
sorry for the long post funny thing is this app worked fine with Vs2005 and the dll's from cegui
removed the callstack messages to fix forum prob
Posted: Thu Jan 08, 2009 20:16
by CrazyEddie
Hi,
yeah it's definitely as I said, a recursive event issue.
It seems something odd is going on with a Tooltip, are you subscribing to any events on the Tooltip or something? If so, what do those handlers look like?
Posted: Thu Jan 08, 2009 20:40
by maori
Hi CE
only tooltips i have is on the button
Code: Select all
PushButton* MyBtn = static_cast<PushButton*>(winMgr.createWindow("TaharezLook/Button", "ubutton"));
sheet->addChildWindow(MyBtn);
MyBtn->setSize(UVector2(cegui_reldim(0.08f), cegui_reldim(0.05f)));
MyBtn->setPosition(UVector2(cegui_reldim(0.46f), cegui_reldim(0.04f)));
MyBtn->setTooltipText("Test Tooltip");
MyBtn->setText("users");
MyBtn->subscribeEvent(PushButton::EventClicked, CEGUI::Event::Subscriber (&USERB::OpenUsers, userb));
so dont think i'am subscribing to the tooltip there or am i wrong (possibly got it wrong )
TIA
Posted: Fri Jan 09, 2009 09:36
by CrazyEddie
Hi,
I think you broke the forum
I have a theory about this issue; I might have introduced a bug in 0.6.2 affecting tooltips that appear directly under the mouse, when I addressed
this ticket., I have to test it out and get back to you (which will not be today).
CE.
Posted: Fri Jan 09, 2009 13:03
by maori
hiya
I think you broke the forum
ooopps broke my CEGUI now the forum damn and this year was beginning to look good as well
I might have introduced a bug in 0.6.2 affecting tooltips that appear directly under the mouse, when I addressed this ticket., I have to test it out and get back to you
ahhh great stuff CE thanks sure hope that is the cause as i said in the last version i had 0.6.0 iirc worked fine with vs2005 and the code i have just this latest 0.6.2b and vs2008 gives this prob
Thanks for all your hard work and effort's
Posted: Sun Jan 11, 2009 19:39
by maori
hiya
just to update you it deffinatly a tooltip prob
i remmed out the
and it dosnt crash
Posted: Sun Jan 11, 2009 20:12
by Pompei2
maori wrote: I think you broke the forum
ooopps broke my CEGUI now the forum damn and this year was beginning to look good as well
happy new year
sorry, I have nothing intelligent to say to help you here, so I'm
Posted: Sun Jan 11, 2009 20:23
by maori
LOL
happy new year to you aswell Pompei2
Posted: Sun Jan 11, 2009 22:21
by CrazyEddie
I've not tested this as I've been busy with other things, but I am 99.9% certain that it's a bug that I introduced, so apologies for that and I'll add a ticket so we remember to fix it
CE.
Posted: Sun Jan 11, 2009 22:32
by maori
Thanks CE
if you could post a fix in here once done i would be gratefull
no hurry though