On terça-feira, 3 de setembro de 2013 09:58:28, Philipp Kursawe wrote:
> Using this code:
>
> @
> obj->connect(sender, &Sender::signal, [] {
> });
>
> // later
> obj->deleteLater();
> @
>
> The object will be deleted, but the connection will not be broken, and
> the sender can still signal, the lambda will be called, but of course
> it will crash. Is this a known limitation of using lambdas?Huh? how can you send a signal after the sender is deleted? deleteLater() does not mean delete *now*. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
