Q: CDaoRecordset and AddNew
Jochen Koenemann -- joe@mpi-sb.mpg.de Friday, October 25, 1996 Environment: VC 4.0 and Win95 I am using CDaoRecordset Objects in connection to an ACCESS database. When calling the AddNew funtion several times the debugger reports a memory leak. The AddNew function allocates something like a cache that is not freed. Is there a possibility to free that cache memory ? thanks Jochen
Mike Blaszczak -- mikeblas@nwlink.com Sunday, October 27, 1996 At 02:34 10/25/96 +0200, Jochen Koenemann wrote: >Environment: VC 4.0 and Win95 >I am using CDaoRecordset Objects in connection to an ACCESS database. >When calling the AddNew funtion several times the debugger reports >a memory leak. The AddNew function allocates something like a cache >that is not freed. Is there a possibility to free that cache memory ? Can you reproduce this problem using a more current version of MFC? In MFC 4.2, it looks like the cache is freed by CDaoRecordset::FreeCache(). In MFC 4.2, the pointers to the cache memory are public, so you could just delete them directly if you're destructing the object yourself. If you've written a CDaoRecordset-derived class, you can probably delete them in your overridden destructor. .B ekiM http://www.nwlink.com/~mikeblas/ I'm afraid I've become some sort of speed freak. These words are my own. I do not speak on behalf of Microsoft.
| Вернуться в корень Архива |