Re: Python loading library containing embedded python...

2006-01-30 Thread Brennus
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >Brennus wrote: >> I have solved my problem, or at least part of it by downgrading >> to Visual Studio 2003. For whatever reason, the same steps applied >> to Visual Studio 2005 result in massive problems. >> >> Even the python.exe compiled by VS 2005

Re: Python loading library containing embedded python...

2006-01-29 Thread Martin v. Löwis
Alex Martelli wrote: > I believe the python core developers who do develop on Windows have not > even tried VS 2005 and have no intention of so doing for the foreseeable > future. That is not true. I have already tried it. Many others did, too, and found that Microsoft managed to break ISO C comp

Re: Python loading library containing embedded python...

2006-01-29 Thread Martin v. Löwis
Brennus wrote: > I compiled pythoncore.lib. I statically link this to my dll > and define Py_BUILD_CORE before including Python.h. Can you please elaborate? How did you do this? How do you know pythoncore.lib is a static library? What msvcrt is it linked with (use depends.exe to find out)? > The

Re: Python loading library containing embedded python...

2006-01-29 Thread Martin v. Löwis
Brennus wrote: > I have solved my problem, or at least part of it by downgrading > to Visual Studio 2003. For whatever reason, the same steps applied > to Visual Studio 2005 result in massive problems. > > Even the python.exe compiled by VS 2005 throws A/Vs on startup. > > Does Python have to use

Re: Python loading library containing embedded python...

2006-01-29 Thread Alex Martelli
Brennus <[EMAIL PROTECTED]> wrote: ... > I have solved my problem, or at least part of it by downgrading > to Visual Studio 2003. For whatever reason, the same steps applied > to Visual Studio 2005 result in massive problems. > > Even the python.exe compiled by VS 2005 throws A/Vs on startup.

Re: Python loading library containing embedded python...

2006-01-29 Thread Brennus
>I have a dll/so which embeds python. I can verify it works by >compiling it as an executable and adding an appropriate main. > >I tried to write unit tests for this library with ctypes and a simple >python script. Access violations and other strange things result. I >suspect this is because I am

Re: Python loading library containing embedded python...

2006-01-29 Thread Brennus
Martin v. Löwis wrote: >Brennus wrote: >> I have a dll/so which embeds python. I can verify it works by >> compiling it as an executable and adding an appropriate main. > >Please explain in more detail how you did the embedding. Did you >statically link the Python interpreter into your dll/so, or

Re: Python loading library containing embedded python...

2006-01-29 Thread Martin v. Löwis
Brennus wrote: > I have a dll/so which embeds python. I can verify it works by > compiling it as an executable and adding an appropriate main. Please explain in more detail how you did the embedding. Did you statically link the Python interpreter into your dll/so, or did you use a shared one? > H

Python loading library containing embedded python...

2006-01-28 Thread Brennus
I have a dll/so which embeds python. I can verify it works by compiling it as an executable and adding an appropriate main. I tried to write unit tests for this library with ctypes and a simple python script. Access violations and other strange things result. I suspect this is because I am basica