wacom
25-02-2008 11:51:14
Hi,
I have some problems with QuickGUI as soon as I use DirectX. With OpenGL, everything is fine. But with Direct3D, the app crashes as soon as I move the mouse. I tried something very hacky, and to a degree, it works:
Now it only crashes when the mouse cursor is near the border - the errors are the same. Here's the callstack:
It fires an EVENT_MOUSE_ENTER to a widget that doesn't exist - it even happens when I only have this sheet and no widgets on screen.
I have some problems with QuickGUI as soon as I use DirectX. With OpenGL, everything is fine. But with Direct3D, the app crashes as soon as I move the mouse. I tried something very hacky, and to a degree, it works:
mSheet = mManager->getDefaultSheet();
mSheet->setSkin("qgui", true);
mSheet->setFont("micross.16", true);
mSheet->setSkinComponent(".textbox"); // hack!
mSheet->hideSkin(); // hack!
Now it only crashes when the mouse cursor is near the border - the errors are the same. Here's the callstack:
> QuickGUI_d.dll!std::vector<QuickGUI::MemberFunctionSlot *,std::allocator<QuickGUI::MemberFunctionSlot *> >::size() Line 726 + 0x6 Bytes
QuickGUI_d.dll!std::vector<QuickGUI::MemberFunctionSlot *,std::allocator<QuickGUI::MemberFunctionSlot *> >::empty() Line 736 + 0x8 Bytes
QuickGUI_d.dll!QuickGUI::Widget::fireEvent(QuickGUI::Widget::Event e=EVENT_MOUSE_ENTER, QuickGUI::EventArgs & args={...}) Line 1121 + 0x15 Bytes
QuickGUI_d.dll!QuickGUI::GUIManager::injectMouseMove(const int & xPixelOffset=0, const int & yPixelOffset=-1) Line 608 + 0x14 Bytes
xxxxx.exe!UserInterface::injectMouseMove(const int & X=0, const int & Y=-1) Line 27 + 0x16 Bytes
It fires an EVENT_MOUSE_ENTER to a widget that doesn't exist - it even happens when I only have this sheet and no widgets on screen.