Hello,
first of all, thanks for your feedback and the preparation of the example.
But anyhow, I think this is rather a misunderstanding than a bug.
Please note, that any autoobject is instantiated as soon as it is needed. Autoobjects are created as soon as they are referenced from somewhere in your GUI code and they are deleted as soon as they are no more referenced. See also lifetime of autoobjects.
Typically, a variable within the application class that refers to the device class ensures that the device class is always alive In order to prevent the Garbage Collector from freeing an autoobject, please add a variable to the root class, set the type to your class Application::DeviceClass and the value to the instance (autoobject) of the class.
Does this solve the issue?
Best regards,
Manfred.