Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 12 made on Saturday June 1, 2019 at 13:40
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Wow, I just realized that the post above was the longest I've written here in over 5 years. I used to write novellas.

I included the kitchen sink on code above as at the time there was no string.trim(), string.rtrim(), string.ltrim(). So, inside the pronto, I decided I'd just add them to the string prototype so you could use them naturally such as:

var trimmed = " Hello World! ".trim();

According to Philips, widgets created GUI.addPanel() and GUI.addButton() should be cleaned up with 'remove' as you have done otherwise you get memory leaks. But, how could such leaks occur. If you jump between activities, I would presume that all memory would be cleared. If you leave to 'Diagnostics' or 'Setup', I would expect the same.

However, I always try to bulletproof my code. Therefore, in your dialog upon startup, you might consider creating a Page onExit callback that is added upon construction such that if user pages up/down within the same activity, you clean up the widgets that might be open using your 'close'. method.


Finally,

My stepson, wife, and grandkids are in Stockholm so I know about the TZ issue.

I facetime with them on weekends, so there are options. ;-)
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse