wx.Choice Assertion failures

Can I just apply the wxPythonSrc-2.4.1.2/patches/mac-combo.patch file to my wxWindows CVS directory?

Thanks,
Nicholas Burlett
nrb23@cornell.edu

···

On Wednesday, August 13, 2003, at 03:05 PM, Robin Dunn wrote:

Nicholas Burlett wrote:

when trying to use wxChoice, I get bizzare assertion failures:
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/mac/choice.cpp(192): invalid index in wxChoice::SetClientData
This happens both in my code, and in the Demo.
I mentioned previously on this list that I'm not using the wx libs that came with wxPython, as the DLL loader is broken, and I wanted to include the ogl library with the normal wx lib for convience.

IIRC this is on OSX, right? If so then you'll want to use at least a few files from the wxPythonSrc tarball when you build wxMac as that problem was solved in a non binary compatible way and so it couldn't go into the main 2.4 CVS. Take a look at

  include/wx/mac/choice.h
  include/wx/mac/combo.h
  src/mac/choice.cpp
  src/mac/combo.cpp

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org