Re: embedding python -- windows specify problems

2006-10-05 Thread John Pye
Hi Fredrik, Thanks very much for that reply. Your suggestion sounds feasible, I guess. Taking what you said, and thinking about how I could avoid adding an additional intepreter step, I thought that I could try the following: pyfile = PyFile_FromString(name,"r"); if(pyfile==NULL){

Re: embedding python -- windows specify problems

2006-10-05 Thread Fredrik Lundh
> the contents and the layout of the FILE structure isn't defined "isn't standardized", that is. -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding python -- windows specify problems

2006-10-05 Thread Fredrik Lundh
John Pye wrote: > I have been working on some new code that embeds python in an C > application. The embedding is working fine under Linux but crashing > under Windows (XP) when I reach the following step. > > PyRun_AnyFile(f,name); > > If there's some python exception being thrown by the PyRun_An

embedding python -- windows specify problems

2006-10-05 Thread John Pye
Hi all I have been working on some new code that embeds python in an C application. The embedding is working fine under Linux but crashing under Windows (XP) when I reach the following step. PyRun_AnyFile(f,name); If there's some python exception being thrown by the PyRun_AnyFile call, how ca