Hi All,
I have a problem with a memory leak and the database tools.
I have created a tool that uploads data from a datasocket to a database. As part of this tool, I am running a check to confirm that the table exists in the database, and if it doesn't, I create the table.
After searching long and hard for a memory leak in my code, I have found that there seems to be a memory leak in the 'DB Tools List Tables.vi' code somewhere. Has anybody else come across this? I seem to be gaining 4K every ~ 2 seconds when running a testing VI that opens a database connection, then loops every 500ms to run the List Tables function.
I have tried the changes suggested in other posts (such as creating a constant array attached to the actual CIN node), I have also attempted closing the ADO reference (which crashed my tester!).
Is there any update expected for the toolkit? There was some suggestion of an update in another post (2005), but I'm not sure if there has been an update since then. Also, how come the schema constant in DB Tools List Tables doesn't match the data type for the control in DB Tools Open Schema.vi? There seems to be a misalignment of the enum - adSchemaTables = 20 in the constant & adSchemaStatistics = 20 in the control.
Any help with this would be greatly appreciated.
Regards,
Slade