Re: Problem embedding in small Win32 App

2007-07-27 Thread Brad Johnson
Gabriel Genellina 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 > increme

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.