Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Attribute instance-path

2017-02-01
2017-02-01
  • josepmariarams - 2017-02-01

    Dears atribute instance path works in static class instances.

    In instances created via __new not assign any name (as it had to be).

    But if that instance creates another instance via __new, the name field is filled with extrange characters, not empty.

     
  • rickj - 2017-02-01

    If I remember correctly the noinit attribute must also be specified so that initialization doesn't overwrite the string value created by the compiler. In the case of _NEW the compiler has no chance to set the value and th noinit attribute also prevents writing during initialization so the string would naturally contain random memory content.

     

Log in to post a comment.