Calling wxPython script from wxWindows application

Hi,

Another requirement of our project is to call wxPython script from our wxWindows application.

The samples/embedding sample explains how this can be done. I have created a sample application and added embedded.cpp file to it. But this application crashes. I tried to debug the application and found that the statement main_tstate = wxPyBeginAllowThreads() crashes. I also observed that in the function wxPyCoreAPI_IMPORT of wxPython.h the variable wxPyCoreAPIPtr is assigned a NULL value by the call (wxPyCoreAPI*)PyCObject_Import("wxc", "wxPyCoreAPI").

Can anyone please tell me the possible reason behind this crash? Am I missing out some important step?

Please let me know if you have already implemented such requirement.

Regards,
Gauri

ยทยทยท

_________________________________________________________________
Buy now! Receive a gold coin on Dhan Teras. http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate prosperity!