Subject: Re: [boost] [shifted_ptr] Review Request
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-04-06 15:54:05
On 4/6/2011 12:43 PM, Thomas Klimpel wrote:
> It's not just that there is no pointer pointing to the main window. At the moment were Mark& Sweep wipes the main window away, no references of any sort to the main window are left. So even if Mark& Sweep wouldn't wipe it away, it would be an unreachable object that couldn't be used anymore by the program (because the program has sort of forgotten the address of the object).
No reference to its data is left but the destruction of the window is
premature. If the parent is incrementing a timer in the child widget,
then the parent can't be destroyed before its child otherwise the timer
will become inert.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk