[C++-sig] Factory using embedded Python interpreter

2012-07-21 Thread Wojciech Mamrak
Hello list, I am trying to create C++ objects dynamically (some kind of factory) with use of embedded Python interpreter (i.e. eval). Naive implementation: namespace bp = boost::python; bp::object main_module = ...; bp::object main_namespace = ...; bp::object bpo_ob = bp::eval((type+"()").c_str(

Re: [C++-sig] exporting a boost::python::dict containing a boost::python::list

2012-07-21 Thread Niall Douglas
On windows, the only near equivalent to valgrind is Intel's suite of very expensive tools. If your company already has a licence, they are very good. If not, fire up a copy of Linux on your nearest VM node and port a small example of the problem in your BPL app over to GCC. Niall On 21 Jul 20

Re: [C++-sig] exporting a boost::python::dict containing a boost::python::list

2012-07-21 Thread Ronny Herzog
Thanks again, you were 100% right. I could spot the problem. Ronny Am 7/20/2012 5:19 PM, schrieb Ralf Grosse-Kunstleve: without having looked at your code ... most likely this is a memory issue. run with valgrind (valgrind.org or man valgrind) to pin-point the problem. O

Re: [C++-sig] exporting a boost::python::dict containing a boost::python::list

2012-07-21 Thread Ronny Herzog
Thanks for the answer, but I should add that I am using Windows 7 32Bit with Python 2.6. Ronny Am 7/20/2012 5:19 PM, schrieb Ralf Grosse-Kunstleve: without having looked at your code ... most likely this is a memory issue. run with valgrind (valgrind.org or man valgrind)