I had thought the same. I am running GWT code under MobileSafari on the iPhone and am seeing occasional program crashes on exit. the stack trace seems to indicate that a timer is being fired, and I believe that perhaps the UIWebView has disappeared by the time it runs code expecting it to be there.
#0 0x312e5e60 in KJS::FunctionExecState::FunctionExecState () #1 0x312e5b98 in KJS::FunctionImp::callAsFunction () #2 0x312df0f4 in KJS::FunctionCallDotNode::evaluate () #3 0x312e5a78 in KJS::ExprStatementNode::execute () #4 0x312e61c4 in KJS::FunctionBodyNode::execute () #5 0x312e5bac in KJS::FunctionImp::callAsFunction () #6 0x31326ae8 in KJS::JSObject::call () #7 0x328296d4 in WebCore::ScheduledAction::execute () #8 0x32829350 in KJS::Window::timerFired () #9 0x32829208 in KJS::DOMWindowTimer::fired () #10 0x32824c84 in WebCore::TimerBase::fireTimers () #11 0x328249ac in WebCore::TimerBase::sharedTimerFired () #12 0x3282490c in WebCore::timerFired () #13 0x30269d8e in CFRunLoopRunSpecific () #14 0x30269326 in CFRunLoopRunInMode () #15 0x32bc0748 in RunWebThread () #16 0x3146178c in _pthread_body () #17 0x00000000 in ?? () if I can figure out how to override setTimeout() and setInterval(), I may be able to track what is going on. /dave On Jun 30, 5:12 am, Ian Bambury <ianbamb...@gmail.com> wrote: > Surely when you close the browser window (or navigate away) the timers are > gone. > Ian > > http://examples.roughian.com > > 2009/6/30 davidroe <roe.da...@gmail.com> > > > > > I have a situation where I need to ensure that _every_ timer launched > > is closed upon exit, meaning I track each timer I create and ensure > > that I cancel it when the application is about to close. > > > is anyone aware of any timers that GWT launches that are, perhaps, > > allowed to self disintegrate, rather than actually being cancelled? > > > thanks, > > /dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---