Righty... I've added support for reference counting Objects stored in wxListCtrl item client data now.
From my initial tests :
1) Added objects to items, and see how long they stay valid for
2) DeleteallItems and replace, seeing if we are leaking.
both are passing, so I'm reasonably happy that it's working now.
However, it will require normal use to make sure I haven't missed anything out.
This means that you should be able now to safely use data stored in client data without having to keep your own copy of it elsewhere.
From my initial tests :
1) Added objects to items, and see how long they stay valid for
2) DeleteallItems and replace, seeing if we are leaking.
both are passing, so I'm reasonably happy that it's working now.
However, it will require normal use to make sure I haven't missed anything out.
This means that you should be able now to safely use data stored in client data without having to keep your own copy of it elsewhere.