[C++-sig] Nasty Heap Error in MSVC 7.1 With Boost and PythonUsing Derived Classes

mjkeyes at sbcglobal.net mjkeyes at sbcglobal.net
Tue Oct 18 07:15:34 CEST 2005

One more note - I'm using the Visual Studio project included in the
Boost folders for Python.  Import.cpp was not part of this project - I
added it, but I'm still getting the linking problems.

"David Abrahams" <dave at boost-consulting.com> wrote in message
news:<ur7aqdcmi.fsf at boost-consulting.com>...
> "Matt" <mjkeyes at sbcglobal.net> writes:
> > Hey all,
> >
> > i'm trying to create an application that both embeds and extends 
> > python through boost.  i've got a rough framework up and running, 
> > but now that i'm finally to the python part i'm having troubles.  
> > Please know that i'm a noob to boost and to boost.python, so if you 
> > see any obvious noob idiocies in my code please point them out 
> > (we've all got to start learning somewhere :)).
> You should never be doing any Py_XINCREF or Py_XDECREF stuff when 
> using Boost.Python.  Also, you're using an outdated approach to 
> supporting virtual functions.
> I suggest you follow the example of 
> http://www.boost-consulting.com/boost/libs/python/test/exec.cpp
> You'll need the latest Boost CVS state in order to use all the idioms 
> therein, though.
> --
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com

More information about the Cplusplus-sig mailing list