On Wed, Oct 4, 2017 at 6:39 PM, Gonzalo Aguilar Delgado <
gagui...@aguilardelgado.com> wrote:

> Yes it is. Because the code of the function starts to execute. In the
> example the processMessage. Until the operation stops on emit and the
> program crash.
>
emit requires you to have a valid `this` pointer, nothing before that,
unless I have missed something, does - you're using only local variables.
Most (if not all) compilers will still allow you to call methods with
invalid objects up to the point where the object (i.e. `this`) is actually
referenced.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to