Re: [C++-sig] Python exceptions in functions called from C++

2010-06-09 Thread Charles Solar
Thanks for the quick replies. Ill try this fetch stuff, maybe i can find some way to hack it into boost python so I do not have to modify every override call I make in my project. >> If you call Python from C++, why are you saying you are not embedding Python ? What do you mean by that ? My app

Re: [C++-sig] Python exceptions in functions called from C++

2010-06-09 Thread Stefan Seefeld
On 06/09/2010 03:11 PM, Charles Solar wrote: I have a boost python library that I build python scripts with. I am not embedding python, I think that is worth mentioning right off the bat. In my C++ library I have a separate thread calling into python occasionally If you call Python from C++,

Re: [C++-sig] Python exceptions in functions called from C++

2010-06-09 Thread Matthew Scouten (TT)
Something like this will get you some more info. Try: Dopythonstuff() Catch: if (PyErr_Occurred()) { PyErr_Print(); } You should probably re throw that error, too. From: cplusplus-sig-bounces+matthew.scouten=trad

[C++-sig] Python exceptions in functions called from C++

2010-06-09 Thread Charles Solar
I have a boost python library that I build python scripts with. I am not embedding python, I think that is worth mentioning right off the bat. In my C++ library I have a separate thread calling into python occasionally and I am finding that if the function I call in python has a python error in it

Re: [C++-sig] building boost/python against stackless python and vs2010

2010-06-09 Thread Philip Jonientz - NEXPLORE AG
Well, thanks for your help. I realized, there was a previous version of boost installed in the same directory which I first didn't realize somehow... now I'm really happy it actually compiles fine, thanks again :) -Ursprüngliche Nachricht- Von: cplusplus-sig-bounces+pj=nexplore...@python