Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

Berthold Höllmann bhoel at despammed.com
Tue Sep 27 15:20:15 EDT 2005


"F. Petitjean" <littlejohn.75 at news.free.fr> writes:

> Le Tue, 27 Sep 2005 17:48:47 +0200, Berthold Höllmann a écrit :
>> I have wrapped some inhouse libraries for Python.
> How ? Directly coding C code ?

Depends :-) f2py, directly coding C, SWIG.

>> The development team
>> uses VC6 and DF6.1 for development of these libraries under WinXP.
> DF6.1 is Digital FORTRAN 6.1 ?

Yes

>> I
>> would like to wrap the libraries for Python and use the official Win
>> Python from python.org. Now I get a segmentation fault in (access
>> violation in NTDLL.DLL). The code used to work on Python 2.3, so I
>> am afraid I have a plroblem in mixing the code generated by different
>> VC versions. Is this the probable cause of my problem, or should the
>> combination work in general (some libraries seem to work). 
>>
>> Kind regards
>> Berthold
> A possible solution would be to write any VC6 and DF6.1 code to generate
> some DLLs (black boxes) and to use these DLLs from Python by using
> ctypes, to build your applications. All the CPU intensive code should be
> in DLLs and the high level stuff (GUI, presentation, application logic,
> ...) could be in python. (GUI with wnd or venster for example).

As I understand it, ctypes is not really a solution. The code is about
data handling and FE analysis. It has not GUI component. I'm not sure
how well ctypes works with Numeric arrays, but I'm sure ctypes does
not work on Linux and Solaris, but my code has to.

Regards.

-- 
"Es gelten die Regeln der christlichen Seefahrt: Rot und Grün markiert
 das sichere Fahrwasser, Schwarz und Gelb markieren Untiefen und
 Wracks."
Christa Sager, Bundestagsfraktionsvorsitzende Bündnis 90/Grüne



More information about the Python-list mailing list