Hi,
There is a behaviour I do not understand of PyRun_SimpleFileExFlags(),
normally when it executes a python script containing a sys.exit(), it
results by ending the calling application.
I have got this behaviour with PyRun_SimpleFileExFlags() when I call it
from the main thread of a GUI a
Ok I made 2 modifications and I got this working here.
Try this.
51,54c50
< virtual void onTick() {
< if (object o = get_override("onTick"))
< o();
< }
---
> virtual void onTick() { get_override("onTick")(); }
60d55
< PyEval_InitThreads();
65a61
>
BR
Hi Renato,
Okay, I have installed Python 2.4.2 with gcc 4.1.2 on Linux and it's
crashing in the same place as on Solaris.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x41074940 (LWP 12004)]
0x00307740c850 in sem_post () from /lib64/libpthread.so.0
(gdb)
2009/7/8 J. Michael Owen
> Hello Gustavo,
>
> I have some further evolved changes for the sequence methods that you may
> want to use over my previous version. This is more general, and involves
> less code as I realized I could register the sequence methods to just call
> the wrapped methods py
Hi Rento,
Got it working now. I did not realize that the wrapper<> automatically
handled downcast conversion as well.
Thanks,
Paul
"Renato Araujo" wrote in message
news:95291a80907070708p66393027nde354f5b7cc3a...@mail.gmail.com...
Hi Paul,
You can extend from boost::python::wrapper and u