Problem embedding in small Win32 App

2007-07-27 Thread Brad Johnson
I received no responses yesterday, this is a repost. I'm still stuck on this one ladies and gentlemen, and I'm sure it's one of those simple things (isn't it always?) I am creating a small test application in Windows to test the embedding of the interpreter in order to execute arbitrary Python

Re: Problem embedding in small Win32 App

2007-07-27 Thread Gabriel Genellina
En Fri, 27 Jul 2007 16:06:32 -0300, Brad Johnson [EMAIL PROTECTED] escribió: PyObject* o = PyDict_GetItemString(_d, _outcatcher); PyObject* a = PyObject_GetAttrString(o, data); ::MessageBox(NULL, PyString_AsString(a), _T(), NULL); However, it only works twice. On the

Re: Problem embedding in small Win32 App

2007-07-27 Thread Brad Johnson
Gabriel Genellina gagsl-py2 at yahoo.com.ar writes: By far, the most common problem extending/embedding Python is to do wrong reference counts. Read http://docs.python.org/ext/refcounts.html again (I hope you already did!) and make sure you don't hold a pointer to an object without