
13 Jul
2004
13 Jul
'04
10:58 a.m.
Gao Yang <gaoyang@gmail.com> 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