ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved