Shared pointers and visitors
Casper Boemann
cbr at boemann.dk
Thu Apr 21 20:18:58 CEST 2005
On Thursday 21 April 2005 19:46, Boudewijn Rempt wrote:
> Was there a good reason for not using the KisPaintDeviceSP but instead a
> plain pointer in the visitors? I truly don't remember anything about it,
> but if there's no good reason, I might convert the visitors to use it.
well yes - it crashes
Or rather the kisBackground crashes. The kisbackground constructor uses an
iterator to set the pattern, and when this pointer is destroyed the
background is destroyed, even before the constructor is done.
--
best regards / venlig hilsen
Casper Boemann
More information about the kimageshop
mailing list