[wxPython-users] Debug assert failure in genaxmodule.py (ActiveX)
by apocalypznow other posts by this author
Dec 13 2004 5:17AM messages near this date
[wxPython-users] [Ann] regulex, a regular expression evaluator
|
[wxPython-users] _get_document() in iewin
I wrote an ActiveX control that has a few methods (SendMessage(VARIANT), BSTR
GetMessage(), SetTimerSpeed(long)).
I get an error when the following line is executed in genaxmodule.py:
axw = wx.activex.ActiveXWindow(f, clsid)
The error was: Debug Assertion Failed.
It allowed me to bring up the VC++ debugger, and found that the error was in
winocc.cpp line 279. That particular line is:
CString str;
Strange that it should err out there. But the whole function that surrounds
that line is:
int CWnd::GetWindowTextLength() const
{
ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));
if (m_pCtrlSite == NULL)
return ::GetWindowTextLength(m_hWnd);
else
{
CString str;
m_pCtrlSite-> GetWindowText(str);
return (int)str.GetLength();
}
}
Looking at the call stack, m_hWnd and m_pCtrlSite both have values of
0x00000000. So the ASSERT should fail.
How to fix this problem??
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
|