590 views
in Embedded Wizard Studio by
Depending on my UI application, the Prototyper does not react anymore on keyboard inputs or mouse/touch events.  How to avoid such 'hang-up' situations? How to break the Prototyper?

1 Answer

0 votes
by

A hang-up situation can have one of the following reasons:

1. Endless loop

  while ( i < max )
  {
    // don’t forget to update your loop condition
    i = i + 1;
  }

2. Access to a property within its OnSet/OnGet method without ‘pure’ causes a recursive trigger of the OnSet/OnGet method.

  Property = value;

3. Recursive method calls or signals to a slot method

  void test( void )
  {
    test();
  }

To avoid a fatal stack overflow, the Prototyper limits recursions to 256 re-entrances. A recursive postsignal will automatically be suppressed. In the Log window a corresponding warning will be printed. Nevertheless older versions of the EmWi Software have not implemented this security mechanism and run into an endless loop.

The Prototyper can be stopped at any time by the break-command (Pause) on the PC keyboard and since EmWi version 5.20 the Prototyper window can be closed even in a endless loop.

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

...