By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,332 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,332 IT Pros & Developers. It's quick & easy.

Embedding processing module in c (winxp sp2)

P: n/a
Hello every one

Did anybody tried to embed pyprocessing (http:// in a c app? im using python 2.4 and
pyprocessing 0.52 under winxp sp2. but it doesnt seem to work. I added
a print statement in Process.start() method after
'_current_process._children.add(self)' command in file line
97 and it prints as its in a kind of loop!

here is the sample program:

#include "python.h"

int main(int argc, char **argv)

PyRun_SimpleString("import sys\n"
"sys.argv=['']\n" //a cheat to make processing go on!
"from processing import Process,Queue,freezeSupport\n"
"def f(q):\n"
"\timport wx\n"
"\tfrom import crust\n"
"\tapp = wx.PySimpleApp(redirect=False)\n"
"\tframe = crust.CrustFrame()\n"
"if __name__ == '__main__':\n"
"\tp = Process(target=f, args=(q,))\n"

Best Regards,
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.