HISE Logo Forum
    • Categories
    • Register
    • Login

    How do Presets Load Before onInit?

    Scheduled Pinned Locked Moved Unsolved Scripting
    9 Posts 4 Posters 319 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.
    • clevername27C
      clevername27
      last edited by

      Can anyone verify if the Default preset does in fact load before onInit (and therefore executing component callbacks) and if so…what is going on? So many questions here…I can't be the only one. Thanks!

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

        @clevername27 No it‘s supposed to load directly after onInit. Are you sure?

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @Christoph Hart
          last edited by

          @Christoph-Hart Thank you for your reply. I think it is, but there could be something else afoot. Here's the beginning of my onInit:

          3b35c512-df54-4438-a1c8-04a4a6fda2bb-image.png

          And here is my output in the Console:

          092be0af-c502-4470-a17f-2ebb28626d24-cc29be98-84bc-4f26-acc7-f73619a14c19-image.png cc29be98-84bc-4f26-acc7-f73619a14c19-image.png

          The messages printing before "INIT EXECUTES" are being called from preset-initiated callbacks. The message about assigning block nodes is in the preset-loading callback.

          Does that help? Thanks again.

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @clevername27
            last edited by ustk

            @clevername27 said in How do Presets Load Before onInit?:

            Don't know if it can help but I had issues in the past tracking down an event timeline using the Console, because the print wasn't happening in the real order... (maybe a thread thing?)
            So to be sure I placed flags in an array and traced this array at the end. This way I was sure the array was fed in realtime

            Can't help pressing F5 in the forum...

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @ustk
              last edited by

              @ustk Woah, so you're saying the Console wasn't printing things in order…like maybe because asynchronous threads were running?

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @clevername27
                last edited by

                @clevername27 Yes that is what I am saying, although it is rather exotic and happened to me when tracking down a particular issue (maybe between scripts, and don't remember the exact scenario)

                Can't help pressing F5 in the forum...

                clevername27C 1 Reply Last reply Reply Quote 1
                • clevername27C
                  clevername27 @ustk
                  last edited by

                  @ustk Thanks, I appreciate your response. @Christoph-Hart, is there a test I can to determine if that's what's happening?

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    Orvillain @clevername27
                    last edited by

                    @clevername27 Are you using broadcasters?? Those all seem to fire off once on init as they get connected.

                    clevername27C 1 Reply Last reply Reply Quote 0
                    • clevername27C
                      clevername27 @Orvillain
                      last edited by

                      @Orvillain Yes I am.

                      1 Reply Last reply Reply Quote 0
                      • clevername27C clevername27 referenced this topic on
                      • First post
                        Last post

                      12

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.3k

                      Posts