Embedded Python Problem....

Christian Lemer Christian.Lemer at usrconsult.be
Tue May 25 05:04:52 EDT 1999


I try to use PyRun_String in a Windows C application:

	Py_Initialize(); 
	PyRun_SimpleString("print 'Hello'");
	res = PyRun_String("print 'Hello'", 0, Py_None, Py_None);
	Py_Exit(0);

The previous code ends up with "abnormal program termination because of
line 3 (PyRun_String)

Is there something wrong with it?
How can I debug this kind of thing?

Thanks in advance for your help.

Chris.

-- 
Christian LEMER                                    tel +32.10.65.44.11
UsrConsult S.P.R.L                                 fax +32.10.65.44.10
rue Margot, 37	                              http://www.usrconsult.be
B-1457 Nil St Vincent             mailto:Christian.Lemer at usrconsult.be




More information about the Python-list mailing list