After a couple of days of eyeballing my code, I found where I'm leaking memory. I'm allocating dynamic memory at my TableLoadDataFunc().
Now, in the doc for TableLoadDataFunc(), (I quote) "As with FldSetText, you are responsible for freeing the memory associated with the dataH parameter. You can do so in the TableSaveDataFuncType function, but it is only called for a cell that has been edited." I am deallocating memory at my TableSaveDataFunc(), but only cells that are edited have their handles freed. How do I free other cells that were not edited, and thus TableSaveDataFunc() not called on them? Right now I'm maintaining a linked-list to remember all the handles that were created, each piece of the list taking an additional 96 bits (of locked memory), I'm not being very memory efficient here. Thanks all. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
