edwardaux
8 years agoVisitor
Execution timeout running getLinkStatus()
I'm seeing a weird (to me) execution timeout when running some code that is launched from a timer. My timer code looks like:
and then the routine that gets called looks like:
I've had a couple of reports from testers with a stack trace reporting an Execution Timeout on the line where I'm checking getLinkStatus() - I must admit I'm somewhat puzzled as to how that might cause an execution timeout. The only thing I can think of is that (maybe) there's a rendesvouz timeout when accessing the m.deviceInfo variable? It isn't used or referenced anywhere else, though, so that seems like a long shot.
Any thoughts would be greatly appreciated. Thanks a lot.
--
Craig
m.deviceInfo = createObject("roDeviceInfo")
m.internetCheckTimer = createObject("roSGNode", "Timer")
m.internetCheckTimer.duration = 1
m.internetCheckTimer.repeat = true
m.internetCheckTimer.observeField("fire", "checkNetworkAvailable")
m.internetCheckTimer.control = "start"
and then the routine that gets called looks like:
sub checkNetworkAvailable()
currentlyOffline = m.deviceInfo.getLinkStatus() = false
print(currentlyOffline)
end sub
I've had a couple of reports from testers with a stack trace reporting an Execution Timeout on the line where I'm checking getLinkStatus() - I must admit I'm somewhat puzzled as to how that might cause an execution timeout. The only thing I can think of is that (maybe) there's a rendesvouz timeout when accessing the m.deviceInfo variable? It isn't used or referenced anywhere else, though, so that seems like a long shot.
Any thoughts would be greatly appreciated. Thanks a lot.
--
Craig