Bug #542 | Memory Leak on SMP | ||
---|---|---|---|
Submitted: | 29 May 2003 16:57 | Modified: | 6 Oct 2003 2:45 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51 | OS: | Windows (Windows 2000/XP) |
Assigned to: | Venu Anuganti | CPU Architecture: | Any |
[29 May 2003 16:57]
[ name withheld ]
[4 Jun 2003 10:44]
Venu Anuganti
Hi !! Thanks for sending a nice sample to debug. I tested the sample from my Windows 2000 and XP professional boxes against 3.51.06 driver, and couldn't able to get any leak. Even I ran the sample against Rational Purify. Note that the sample doesn't free the connection handle allocated in ThreadProc, and though it doesn't cause any problems, but will be freed at once when you free the environment handle while exiting(which is outside of the thread block). In case if you have some internal leak checks performed immeadiatly after the thread block is existed, before the SQLFreeEnv is called, you may see a leak becuase of the open 'n' thread connection handles. If you run against a debug driver by enabling the driver log, if there is any leaks, it will be printed out to myodbc.log while the sample is exited. Could you please cross check this and let me know the status. In a side note, though its not related, there are few checks from SQLMoreResults and SQLFetchScroll only for SQL_NO_DATA, but its always better to have for both SQL_ERROR and SQL_NO_DATA inorder to have a early break for errors too. Thanks, Venu