[C++-sig] Embedded python, script has no effect

David Abrahams dave at boost-consulting.com
Tue Jul 22 18:56:48 CEST 2008




On Tue, 22 Jul 2008 09:46:37 -0700 (PDT), FoxMulder900
<foxmulder900 at yahoo.com> wrote:
> 
> I am still having the same problem but I realized something else, the
> catch
> statement is always being caught but PyErr_Print() is not printing
> anything,
> when i comment out the catch statement it crashes giving me a
> std::invalid_argument error.
> 
> I think it is crashing before it gets into my script because even if i
> comment everything out in the .py file, it still crashes. I have tried
> replacing the filename with the full path to make sure it
> is finding the script, but that didn't help either. I am still confused
as
> to what i'm missing!

Sounds very much like this exception is not the translation of a Python 
exception, but rather is being thrown by some ordinary C++ code.  Most 
debuggers will let you breakpoint on throw; you might try to find out where

it's coming from.

-- 
David Abrahams
Boost Consulting, Inc.
http://www.boost-consulting.com





More information about the Cplusplus-sig mailing list