After conversion to Version 11 Service Engine cannot start with a WPF

After conversion to Version 11 Service Engine cannot start with a WPF

Summary

<Short Summary of Bug>


Description

After converting a project with WPF to zenon Software Platform version 11, the service engine no longer starts. The check with a debugger shows this error: "An unhandled exception of type 'System.StackOverflowException' occurred in ManagedWPFWrapper.dll". In versions up to and including zenon10 the problem does not occur.

Cause:

In a faulty WPF, the code behind changes the XMAL structure in an invalid way. Child and parent have the same name. This leads to a recursion in the XAML structure. Names must be unique. In older versions the error does not occur, because the mechanism for passing zenon-element to XAML does not exist.

Note: Check and correct WPF elements for unique naming in the XAML structure.

Hint:
In version 11 and higher, endless recursion is now prevented in the case of incorrect XAML files. 
To benefit from this customization:

  • Update your zenon Software Platform to the latest build of zenon 11 or higher.



Item ID: 255947
Version: 11.00 Build: 109317