[egenix-users] Embedding mx
M.-A. Lemburg
mal at egenix.com
Tue Oct 26 10:29:13 CEST 2004
Keith Moore wrote:
> I'm using Visual C++ 6.0 to step thru the snippet below. When I attempt to
> import mx.ODBC.Windows, I get an access violation. Has anyone seen this?
> What am I doing wrong?
>
>
> #include <Python.h> /* standard API def */
>
> void main()
> {
> //version 1
> printf("embed_simple\n");
> Py_Initialize();
> PyRun_SimpleString("import mx");
> >> PyRun_SimpleString("import mx.ODBC.Windows"); <<
>
> I get Unhandled exception in Embed_Simple.exe...(PYTHON23_D.DLL)...Access
> violation.
It would help if you could provide stack trace information.
I remember that there was a problem with mxDateTime compiled
with a Python debug version. Those problems are fixed in
more recent egenix-mx-base 2.1 betas.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Oct 26 2004)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the egenix-users
mailing list