Processing the Call Stack RRS feed

  • Question

  • Is there a way to process the call stack in silverlight?  In Delphi it is Application.ProcessMessages and in vb it's DoEvents.  Anything like this in Silverlight?

    Wednesday, December 17, 2008 1:30 PM


  • In VB.Net, DoEvents was specific to Windows Forms. I don't think there is an equivalent in WPF or Silverlight. There is an explanation of this here:

    Unlike Windows Forms, WPF doesn't directly provide an Application.DoEvents() equivalent to allow developers to start nesting message pumping. When writing Windows application, you'd better try to avoid using nested message pumping, because nested message pumping could cause some subtle problems such as code reentrancy, and what's more, WPF will disable nested message pumping when doing layout, visual tree traversal among other things.

    Wednesday, December 17, 2008 1:43 PM