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

Find Function: Object reference not set to an instance of an object.

2023-10-23
2023-10-30
  • jerry.sorrells - 2023-10-23

    Build: CODESYS 3.5 SP19 Patch 1 (64-bit)
    Host OS: Windows 10
    Target: Linux SL

    I have a project with programs in Structured Text and Ladder Diagram. When I try to use the Find function, it works for the Active Editor; however, when I try to use Find for the Entire Project, I get the error "Object reference not set to the instance of an object." I know what this error means in the context of the program, but I have no idea why the find function is returning this error. The variable I am searching does not matter: it happens with all variables.

    Any help with this will be greatly appreciated. I generally use the Find function quite often as I am developing and not having it is really slowing me down.

     
  • TPTSys - 2023-10-30

    Hey,

    Sorry this isn't super helpful, but i had this problem once and was able to resolve it. I can't recall how I solved it and whether it was a problem with my codesys installation or the project itself.

    If it is the codesys installation, make sure all your required libraries and plugins are installed and available. compare with a colleagues installation if possible.

    I vaguely recall saving a copy of my project and deleting things one by one until the error went away...

     
  • TPTSys - 2023-10-30

    Hey,

    Sorry this isn't super helpful, but i had this problem once and was able to resolve it. I can't recall how I solved it and whether it was a problem with my codesys installation or the project itself.

    If it is the codesys installation, make sure all your required libraries and plugins are installed and available. compare with a colleagues installation if possible.

    I vaguely recall saving a copy of my project and deleting things one by one until the error went away...

     

Log in to post a comment.