|
Roger, Attached are 2 scripts (ado-mem-test-04.py, ado-mem-test-05.py) for testing possible ADO memory leak problems. ado-mem-test-04.py appears to exhibit a steady increase in memory requirements with time; ado-mem-test-05.py does not appear to exhibit this behavior. The primary difference between the two scripts is that -04 changes its insert value each time via a prepared statement parameter while -05 simply uses the database table column default value (NULL) for each insert. I apologize for the length (~65 lines) of each script. Thanks for taking a look at this. -- jv P.S. The scripts have always been run using python.exe rather than pythonwin, and my observations on memory usage come from the Windows Task Manager. Roger Upole wrote: Jim Vickroy wrote:I have a "fairly" simple test script that appears to exhibit a memory leak when using ADO to insert rows in a SQL Server database via a persistent connection. |
ado-mem--test-05.py
Description: application/python
ado-mem--test-04.py
Description: application/python
_______________________________________________ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
