I am having some problems using boost::python with boost::thread. I'm using
threads because I want to run some tasks in the background when I'm using
the Python's interactive shell. However, when I use get_override() to call
a Python method from another boost::thread it crashes internally. F
e holding your classes in shared_ptrs,
> and this should handle the reference counting as well. Unfortunately, this
> may require some interface changes to what you have already written (or
> possibly some clever wrapping).
>
> Hope this helps,
> Bill
>
>
> ____
0x810a288), line 56 in
"thread.hpp"
[9] thread_proxy(0x810a288), at 0xfea78ce4
[10] _thr_setup(0xfe670200), at 0xfee159b9
[11] _lwp_start(0xfe77ef08, 0xfec454c4, 0x0, 0xfe77ef54, 0x80c55c0,
0xfe77ef14), at 0xfee15ca0
"Paul Scruby" wrote in message
news:h2sgic$ad...@ger.gmane.o
Hiya,
I'm trying to pass a C++ class that I've extended in Python to a C++
function. I found an example of how to do this in David Abrahams article on
Building Hybrid Systems with Boost Python.
http://www.boostpro.com/writing/bpl.html#virtual-functions
However, I've not managed to get this exa
on::wrapper and use this function
to get PyObject from c++ object.
namespace detail
{
..
namespace wrapper_base_ // ADL disabler
{
inline PyObject* get_owner(wrapper_base const volatile& w);
BR
On Tue, Jul 7, 2009 at 7:54 AM, Paul Scruby wrote:
> Hiya,
>
> I'm tr
t_onTick);
}
Thanks again,
Paul
"Renato Araujo" wrote in message
news:95291a80907060619u5bff0dcey56947d1ac848c...@mail.gmail.com...
I'm using gcc/linux and python >= 2.4 and works fine for me.
On Mon, Jul 6, 2009 at 7:39 AM, Paul Scruby wrote:
> Hello again,
>
> Sorry, I spoke too s
virtual void onTick() {
< if (object o = get_override("onTick"))
< o();
< }
---
> virtual void onTick() { get_override("onTick")(); }
60d55
< PyEval_InitThreads();
65a61
>
BR
On Wed, Jul 8, 2009 at 12:48 PM, Pa