|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-13 05:58:41
Gao Yang <gaoyang_at_[hidden]> writes:
> Hi,
>
> I am having problem when running the following c++ code. The system
> tells me "Unhandled exception ....":
>
> (I also tried running PyRun_String with the string identical to
> strings in hello.py, and it worked fine.)
1. Please bring future Boost.Python questions to the appropriate mailing
list:
http://www.boost.org/more/mailing_lists.htm#cplussig
2. You can't use PyFinalize with Boost.Python
(http://www.boost.org/libs/python/todo.html#pyfinalize-safety)
3. Wrap your PyRun_String in handle_exception as shown in
http://www.boost.org/libs/python/test/embedding.cpp
HTH,
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk