Re: PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
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

Re: PyMarshal Commands crash on Windows

2008-09-14 Thread Gabriel Genellina
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);

Re: PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
Hi! Please remember, that the script crashs on Line PyMarshal_WriteObjectToFile. :-( -- http://mail.python.org/mailman/listinfo/python-list

PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
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