I’ve been using a timer to check the value of a variable either true or false and based on that it calls a method which creates a picture which is then assigned to a BevelButton icon.
The timer fires every 100ms and works perfectly on OS X however on windows within minutes the app has used 4GB of memory and then crashes.
I’ve tried creating the pictures during the open event and then assign that picture to the icon instead of creating the picture each time but that has the same affect.
I’ve also tried setting the BevelButton icon to nil before changing it to something else but has made no difference.
Very quick sample can be found here, https://www.dropbox.com/s/db7vuxzmzsn4i8o/BevelButtonIcon.zip?dl=0
I’m lost as to whats going on