Michael Widenius wrote:
> >>>>> "M" == M -A Lemburg <mal@stripped> writes:
> M> Hi,
> M> I've downloaded the latest MyODBC driver and iODBC manager and
> M> tested them for memory leakage. Unfortunately, the leakage
> M> I reported months ago is still there. Even worse, it seems to
> M> have increased.
> M> The strange thing is that the leakage only occurs on Linux,
> M> not with the latest driver for Win95, yet both platforms run the
> M> same test code.
> If you can you make a full example that shows some memory leaks I
> could probably find out what's wrong!
The test code is actually a test script I'm using for my
Python extension mxODBC. You can download a prerelease version
The package needs Python >= 1.5 to be installed on the machine,
plus the mxDateTime package available from:
To install the mxODBC package for MySQL, follow the instructions
on the web-page:
If you're on Linux, I've created a binary libc5 version,
which you only have to unzip to /usr/local/lib/python1.5/site-packages:
I haven't tested it though, so it may not run on your
Linux installation (it's basically an extract of my current
The test script mentioned above is ODBC/Misc/test.py.
To run it, call python .../ODBC/Misc/test.py and answer
MySQL to the first querstion.
To check for memory leakage the script can execute
in an infinite loop. To stop it, simply hit Ctrl-C. It will
generate quite a few tables in the database you point it at,
so creating a new temporary database may be a good idea.
Hope that helps.
Y2000: 211 days left
Python Pages: http://www.lemburg.com/python/