I have experienced onRequestStart being re-executed on an exception in my own application (running on Model-Glue 2). I didn't find this bothersome enough to file a ticket because the only thing I do at onRequestStart is log the request, and I found having a second log entry for the exception useful. My code doesn't require onRequestEnd to close the log so this has not been a problem for me.
A related issue that *will* be a problem for me sooner or later is that exceptions do not execute the onQueueComplete event either. I have been using this event to set up some variables required by code in my views, so if I ever wanted to render my exception view the same way as I render all the other views in my application, I would need to broadcast the onQueueComplete message in my exception event (even though the queue isn't really complete at this point). I'm hoping to upgrade my application from MG2 to the latest MG3.1 RC this coming week. While I'm confident the upgrade will provide many improvements, I guess it was wishful of me to think that all the issues I was experiencing in Unity would have been fixed in Gesture by now. Time to roll up my sleeves... -- Dennis On Sun, Feb 28, 2010 at 5:42 PM, Ryan Stille <[email protected]> wrote: > Ok I was wrong about that, onRequestEnd is always getting ran since I > added it to the exception event. > > What is happening is that on some exceptions (looks like everything > but a non-existent event so far) is that onRequestStart is getting run > twice. I haven't figured out why yet. But that is creating two > records in the new logging thing I'm working on, and leaving one of > them "unclosed" (it gets closed onRequestEnd) so it appeared that > onRequestEnd wasn't running. > > Its all very puzzling. So to recap - I hit refresh in the browser > once, and it appears that onRequestStart gets run, then when the > request ends onRequestEnd gets run, followed immediately by > onRequestStart again. Now the request is over, so I end up with a > logging record that gets left "open". > > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
