"greubel" wrote:
What type of object is port associated with ?
If you receive an unknown event in your event loop, you should ignore it; then just continue processing other events. Roku may occasionally add new events, and if your event is written to exit on unknown events, any future events that Roku may add will cause your application to misbehave.
"mainmanc" wrote:
On a related note, I have been having some strange issues with the Home button and errors being thrown, but I will start another thread for that.
"kbenson" wrote:"mainmanc" wrote:
On a related note, I have been having some strange issues with the Home button and errors being thrown, but I will start another thread for that.
My understanding is that there are currently *NO* guarantees about behavior, besides returning to the home screen, once the home button is pressed. I believe it was stated by a Roku employee that if you want to keep some sort of state, you need to save periodically. Other people have noted odd errors showing up when the home button is pressed, and that's probably to do with the application being uncleanly shut down (killed). I think the general consensus, or at least Roku's position, is to ignore these.
"mainmanc" wrote:
I am not having an issue with state, but it certainly is misleading when an error is thrown up on the console. As a programmer, that justs drives me nuts every time I see it 🙂 . If it is indeed a situation based on the "unexpected" return to the Home screen (which is appears to be) there should be at least some mechanism to either suppress or handle a clean return internally, instead just throwing an error, in my opinion.
"TheEndless" wrote:"mainmanc" wrote:
I am not having an issue with state, but it certainly is misleading when an error is thrown up on the console. As a programmer, that justs drives me nuts every time I see it 🙂 . If it is indeed a situation based on the "unexpected" return to the Home screen (which is appears to be) there should be at least some mechanism to either suppress or handle a clean return internally, instead just throwing an error, in my opinion.
My guess would be that it's not actually returning and invalid msg, but instead killing the "wait" itself so msg is never set, in which case, it would be your code's responsibility to handle that situation, not the Roku.