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

__vfInit in Element Collections Example

  • asnik

    asnik - 2020-09-20

    Hello, i am unable to compile Element Collections Example because Codesys (3.5.10,, does not recognize pInstance^.__vfInit();
    __in MyElementFactory.Create with C0004 and C0046 errors.
    What could be the reason?

  • i-campbell

    i-campbell - 2020-09-20

    Are they just precompile errors? It should still compile.

  • asnik

    asnik - 2020-09-20

    Yes, indeed, thanks!

  • michaelADE

    michaelADE - 2021-06-17

    Hey, I know that this is an old topic, but was useful to me too knowing this error wouldn't actually prevent the system from running.

    However, this means that there is now always an error in my code. is there any way to hide this error? I have found there is the {warning disable} command but it doesn't appear to work for errors.


Log in to post a comment.