Hey all,
I’m trying to figure out why exactly I’m seeing this behavior. Basically I am trying to monitor when a widget value changes. I’m unable to use cabbageChanged
because my array changes size, has many empty slots and it seems if you pass in an array containing blank/empty strings to cabbageChanged
there is a memory leak that occurs, as I notice my memory consumption steadily ticking upwards
So, I’m trying to simply loop through and utilize the optional ktrig
output from cabbageGetValue
. However, for some reason after a single modification to the widget the kTrig output returned by cabbageGetValue
never seems to reset, and the triggered index and the index after return a positive trigger value. So if I modify widget at index 2, after that modification cabbageGetValue
is returning a positive value for its trigger output for index 2 and 3.
Here’s my code:
kIndex = 0
kValue = 0
while kIndex < gkVSliderLastIndex do
kTrig = 0
kValue, kTrig cabbageGetValue gSVActiveSliders[kIndex]
if kTrig == 1 then
printk2 kIndex
endif
kIndex = kIndex + 1
od
I’ve ensured that the proper channel values are being to the cabbageGetValue
call