18 Sep
2008
18 Sep
'08
8:13 a.m.
spiderlama
Here's some code that breaks:
boost::thread_specific_ptr<int> tss; tss.reset(new int(10));
It seems that the shared_ptr (inside thread_specific_ptr) uses an internal memory manager for the reference counter which has already been destructed so when the shared_ptr tries to delete this memory it goes boom!
On its own, that doesn't break when I try it. What are your build settings? Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL