Hi Sudheer,
My guess is that the code is doing something inefficient. Make sure that you aren't propagating the events infinitely by making changes to the node which is causing hte event and not checking in the event handler for reentrance. This is covered in the book in chapter 2.
Good luck!
Patrick
Patrick Halstead
Project Manager at Qdabra