leo.zhou
2014-06-09 13:42:54 UTC
Hi guys,
I have to implement a shaped dialog using a bitmap on Mac OS X 10.9. I
downloaded the latest trunk version of wxwidgets and compile the samples
without any error. When I click "Show shaped window" in shaped app, it
shows debug alert as follows:
../src/osx/carbon/region.cpp(1016): assert "m_refData" failed in
DoOffset(): invalid wxRegion
Call stack:
[00] wxOSX_drawRect(NSView*, objc_selector*, CGRect)
[01] -[NSView _drawRect:clip:]
[02] -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
[03] -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
[04] -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
[05] -[NSNextStepFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
[06] -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
[07] -[NSView displayIfNeeded]
[08] -[NSNextStepFrame displayIfNeeded]
[09] -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
[10] -[NSWindow
_doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
[11] -[NSWindow orderWindow:relativeTo:]
[12] -[NSWindow makeKeyAndOrderFront:]
[13] wxNonOwnedWindowCocoaImpl::Show(bool)
[14] wxNonOwnedWindow::Show(bool)
[15] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[16] wxEvtHandler::ProcessEventLocally(wxEvent&)
[17] wxEvtHandler::ProcessEvent(wxEvent&)
[18] wxWindowBase::TryAfter(wxEvent&)
[19] wxEvtHandler::ProcessEvent(wxEvent&)
[20] wxEvtHandler::SafelyProcessEvent(wxEvent&)
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
Regards,
Leo
I have to implement a shaped dialog using a bitmap on Mac OS X 10.9. I
downloaded the latest trunk version of wxwidgets and compile the samples
without any error. When I click "Show shaped window" in shaped app, it
shows debug alert as follows:
../src/osx/carbon/region.cpp(1016): assert "m_refData" failed in
DoOffset(): invalid wxRegion
Call stack:
[00] wxOSX_drawRect(NSView*, objc_selector*, CGRect)
[01] -[NSView _drawRect:clip:]
[02] -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
[03] -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
[04] -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
[05] -[NSNextStepFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
[06] -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
[07] -[NSView displayIfNeeded]
[08] -[NSNextStepFrame displayIfNeeded]
[09] -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
[10] -[NSWindow
_doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
[11] -[NSWindow orderWindow:relativeTo:]
[12] -[NSWindow makeKeyAndOrderFront:]
[13] wxNonOwnedWindowCocoaImpl::Show(bool)
[14] wxNonOwnedWindow::Show(bool)
[15] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[16] wxEvtHandler::ProcessEventLocally(wxEvent&)
[17] wxEvtHandler::ProcessEvent(wxEvent&)
[18] wxWindowBase::TryAfter(wxEvent&)
[19] wxEvtHandler::ProcessEvent(wxEvent&)
[20] wxEvtHandler::SafelyProcessEvent(wxEvent&)
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
Regards,
Leo
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users