wxAssertFailure

Robin Dunn robin at alldunn.com
Thu Oct 26 12:48:03 PDT 2006


Paolo Tell wrote:
> I'm trying to work on a code, that in Linux is working, on a Mac but I 
> cannot resolv this problem:
> 
> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
> /BUILD/wxPython-src-2.6.3.3/src/mac/carbon/dc.cpp(1482): Invalid DC
> 
> can someone help me???


>   File 
> "/Users/xxx/Documents/Coding/xxx/src/library/obj_graph/g_objects.py", 
> line 1319, in _getSizeTextDraw
>     width, height = dc.GetTextExtent(line)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_gdi.py", 
> line 3435, in GetTextExtent
>     return _gdi_.DC_GetTextExtent(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
> /BUILD/wxPython-src-2.6.3.3/src/mac/carbon/dc.cpp(1482): Invalid DC
> 

What kind of DC is it?  If it is a wx.MemoryDC does it have a bitmap 
selected into it?  If it's another type of DC does the window it is 
associated with still exist?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-users mailing list