ProgressBar sample leaks memory

Hi,

The included ProgressBar sample (v.1.1.0) seems to be leaking memory. Right after loading the sample the simulator indicates 6k memory consumption. After cycling the progress bar by clicking the "Tap to test progress bar" 5 times the consumption has already risen to 9k and keeps on growing slowly but steadily on subsequent executions (11kb after 10 clicks).

I use the ProgressBar also in my current project and have noticed the same - the app keeps running out of memory and crashing. Does anyone have an idea how to fix this or is the problem in the language implementation?

BR,
Mikko
  • Former Member
    Former Member over 10 years ago
    There does appear to be a small memory leak in the ConnectIQ simulator when using a ProgressBar. There does not appear to be a work around for this issue.

    This issue may also effect Confirmation Dialogs, and Menus.

    This leak is in the ConnectIQ simulator code and should not occur on devices.

    I've reported this issue.
  • This sounds like an issue with our simulator. I've filed a bug report to address this.

    Edit: I should refresh my browser window before replying to messages when I've left the window open for more than a few minutes. For the record though my bug report is better because it has a higher number than Brian's report.
  • Thanks for the quick reply. Yes, it seems that the problem is in the ProgressBar or how the simulator handles it. Initially I suspected it had something to do with the callback, but later modified the sample to push in a regular view instead of the ProgressBar and the leaking stopped.
  • This issue was fixed and the fix was included in the 1.1.1 SDK release. Thanks!