HISE Logo Forum
    • Categories
    • Register
    • Login

    Do global cables contain a refrence, or real data?

    Scheduled Pinned Locked Moved Solved Scripting
    2 Posts 2 Posters 59 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.
    • griffinboyG
      griffinboy
      last edited by

      Now that you can pass large objects into global cables, I'm wondering if we need to make sure to clear them to keep memory usage efficient.

      My guess is that the global cables do copying?
      Or am I completely wrong and does it work via pointers to the original object?

      I'm using c++ to send semi-large objects (short audio files) to the hise UI script.

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

        @griffinboy yes it copies the data so that it works across the DLL boundary of the network DLL (otherwise it would be very prone to crashes). Once it's in HISE it will be referenced (so if you attach multiple callbacks they will use the same data object).

        1 Reply Last reply Reply Quote 1
        • griffinboyG griffinboy marked this topic as a question
        • griffinboyG griffinboy has marked this topic as solved
        • First post
          Last post

        23

        Online

        1.7k

        Users

        11.8k

        Topics

        102.8k

        Posts