452 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...