error on crude test of embedding python in c++ HELP PLEASE

2004-12-07 Thread Donnie Leen
I wrote a program to test calling c function from python code embedding in c as following, it cause error after running a while(about 398 circle). I test it in msvc6, python2.3, windows 2k, could anyone tell me why this happened since i just work according to the document? Thanks first. Donnie

Re: error on crude test of embedding python in c++ HELP PLEASE

2004-12-07 Thread Donnie Leen
Got it, thanks :) -- http://mail.python.org/mailman/listinfo/python-list

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this:    char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path );    PyRun_SimpleStri

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this: char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path ); PyRun_SimpleString("import sys");

Re: Error in msvc in building inheritance.obj to build hello.pyd

2004-12-11 Thread Donnie Leen
I use msvc 6.0 too, but my boost.python version is 1.32.0 , and i didn't get error to compile the hello.pyd with the msvc6 IDE, the hello demo from boost.python is compile with jam. would you try to use boost.python 1.32.0 if no compatible problem -- http://mail.python.org/mailman/listinfo/pyt

Re: problem with embbed boost.python in multi-interpreter andmulti-thread HELP please

2004-12-12 Thread Donnie Leen
les, then I can call "import modulenmame" in each sub-interpeter. Donnie Leen -- http://mail.python.org/mailman/listinfo/python-list

can't find python2.4 source code

2004-12-13 Thread Donnie Leen
I make program in c++ embedding python2.4 in windows, I need the python24_d.lib to link with the debug version of my program, but i can't find the source code to build python24_d.lib on the internet, I even can't find python24_d.lib/python24_d.dll on the internet. Does the python24 source code rele

Re: can't find python2.4 source code

2004-12-13 Thread Donnie Leen
I had tried already, the doesn't contain the sourcecode. In python2.3.3, the release pakage contained sourcecode is Python-2.3.3.tar. "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Donnie Leen <[EMAIL PROTECTED]> wrote: > &

problem with embbed boost.python in multi-interpreter and multi-thread HELP please

2004-12-11 Thread Donnie Leen
uld somebody tell me why this happened or how to deal with it, thanks for any suggestion. Donnie Leen -- http://mail.python.org/mailman/listinfo/python-list