HISE Logo Forum
    • Categories
    • Register
    • Login

    root.fdx: error at definition

    Scheduled Pinned Locked Moved Bug Reports
    8 Posts 3 Posters 352 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by

      getting this error for every instance of a reg declaration in the latest build...

      HISE Development for hire.
      www.channelrobot.com

      LindonL 1 Reply Last reply Reply Quote 1
      • LindonL
        Lindon @Lindon
        last edited by

        @Lindon - ok rebuilt again today - still getting this error at every line that declare reg variables...

        Any one else getting this with the latest build?

        HISE Development for hire.
        www.channelrobot.com

        L 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          Do you define a reg variable inside a function call?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Christoph Hart
            last edited by

            @Christoph-Hart not that I know of...

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Lindon
              last edited by

              @Lindon ops yep - found one - silly me.

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 1
              • Christoph HartC
                Christoph Hart
                last edited by

                Yeah I‘ve added this check after code reviewing another project so I guess that‘s a good one...

                The problem is that this might introduce subtle bugs if not detected.

                1 Reply Last reply Reply Quote 1
                • L
                  LeeC @Lindon
                  last edited by LeeC

                  @Lindon Can confirm that I'm getting the same errors for reg variables using the latest build.
                  At present I define reg variables within function calls...
                  Do I need to change this then, if so what would be the right way?
                  Curious to know what changes you made to get eliminate the errors @Lindon

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @LeeC
                    last edited by

                    @LeeC yep - you shouldn't/can't use reg variables in functions (that are not inline at least) - this has always been the case , but Christoph just added a check so thats why you are seeing these errors - you need to change your reg variables to local or var as required.

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post

                    21

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.9k

                    Posts