The Prototyper runs in a hang-up

Description:

The Prototyper runs in a hang-up. It does not react anymore on keyboard input and the Prototyper window can't be closed anymore.

 

Solution:

A hang-up situation can have the following reasons.

A) Endless loop

 

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

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

 

Property = value;

C) 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 a 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.

 

See also:


Keywords:

Prototyper, Control, Hang-up, Dead-lock, Loop, Recursion

 

Last update on 2010-08-19 by Mario Stefanutti.

Go back