76 views
in System Integration by
In the function description for EwProcess() the return value is described as "1, if further processing is needed, 0 otherwise."

What determines whether further processing is needed?

Thank you.

1 Answer

0 votes
by

Hello,

in case you want to terminated the GUI application you can return 0. This quits the main loop and the de-initialization will be called.

In most GUI applications this is not necessary and the application runs for ever.

Best regards,

Manfred

by
Hello Manfred,

The reason for the initial question is I am looking for a way to supervise the main loop and be reactive in case of an error or if the gui application stops responding. Is using the return value of  EwProcess() a valid method or is there a better way?

Thank you.
by
Hello Leo,

in this case it might be helpful to add a watchdog within the mainloop and check from outside the activity of the main loop.

Best regards,
Manfred

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...