PyInt_FromLong gives segfault on small numbers (<257)
Antoine Pitrou
solipsis at pitrou.net
Thu Aug 5 08:34:37 EDT 2010
More information about the Python-list mailing list
Thu Aug 5 08:34:37 EDT 2010
- Previous message (by thread): PyInt_FromLong gives segfault on small numbers (<257)
- Next message (by thread): *** Project for New American Python, Scheme, Emacs, Unix Century - TUTORIAL VIDEOS ***
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 5 Aug 2010 05:04:36 -0700 (PDT) Marcos Prieto <markken at gmail.com> wrote: > Hi, > > I'm trying to call python (python 2.6) functions from C++ using MS VC+ > + 6.0 and any calls to PyInt_FromLong with numbers below 257 give me > exceptions, no problems with bigger numbers > > PyObject *pValue; > > pValue = PyInt_FromLong(1L); (or pValue = PyInt_FromLong(1); Have you called Py_Initialize() before?
- Previous message (by thread): PyInt_FromLong gives segfault on small numbers (<257)
- Next message (by thread): *** Project for New American Python, Scheme, Emacs, Unix Century - TUTORIAL VIDEOS ***
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list