Do global cables contain a refrence, or real data?
-
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.
-
@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).
-
G griffinboy marked this topic as a question
-
G griffinboy has marked this topic as solved