Hi!
I shortened the quode. Everything should be all right and nothing is a
NULL Pointer.
What about PyMarshal_ReadObjectFromFile(FILE* p), this crashs too :-/
hm...
the problem is, on mac everything is all right..
thanks...
--
http://mail.python.org/mailman/listinfo/python-list
En Sun, 14 Sep 2008 08:28:01 -0300,
<[EMAIL PROTECTED]> escribió:
int main (int argc, char * const argv[]) {
Py_Initialize();
FILE* fp = fopen("/Users/test/Desktop/123.pyc","wb");
PyCodeObject* op = (PyCodeObject*)Py_CompileString("import sys
\nprint 'hello'","",Py_file_input);
Hi! Please remember, that the script crashs on Line
PyMarshal_WriteObjectToFile. :-(
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Can anyone help me with this issue?
int main (int argc, char * const argv[]) {
Py_Initialize();
FILE* fp = fopen("/Users/test/Desktop/123.pyc","wb");
PyCodeObject* op = (PyCodeObject*)Py_CompileString("import sys
\nprint 'hello'","",Py_file_input);
PyMarshal_WriteObjectToFile