cdkelly
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2013
09:29 AM
roMessageDialog Losing Event Loop
When displaying a message dialog, it seems that sporadically the message dialog will not receive the events. I am using the below code to display the dialog. When it gets into this state, the logs in the event loop will not print out nor the ones I have added after this function returns. The events seem to be going to the screen below the dialog or are lost completely. This does not happen consistently. Does anyone have any ideas? Thanks!
Function DisplayErrorDialog(errorTitle as String, errorMsg As String) as Void
port = CreateObject("roMessagePort")
dialog = CreateObject("roMessageDialog")
dialog.SetMessagePort(port)
dialog.SetTitle(errorTitle)
dialog.SetText(errorMsg)
dialog.AddButton(0, OkString())
print "showing error dialog before"
dialog.Show()
print "showing error dialog"
while true
print "error dialog event loop"
dlgMsg = wait(0, port)
print "error dialog event loop dlgMsg";dlgMsg
if type(dlgMsg) = "roMessageDialogEvent"
if dlgMsg.isScreenClosed()
print "Screen closed"
return
else if dlgMsg.isButtonPressed()
dialog.Close()
return
endif
endif
end while
End Function
4 REPLIES 4
aagna
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2014
09:32 PM
Re: roMessageDialog Losing Event Loop
Were you able to solve the problem? I am stuck with the same problem.

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014
01:13 PM
Re: roMessageDialog Losing Event Loop
What screen type is this dialog show over?
- Joel
- Joel
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014
07:31 PM
Re: roMessageDialog Losing Event Loop
there is no roScreen involved, is there?
Documentation says it does not mingle with everyman components.
Documentation says it does not mingle with everyman components.
cdkelly
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014
06:34 AM
Re: roMessageDialog Losing Event Loop
I have seen this issue over both the roGridScreen and the roSpringboardScreen.