Re: ContextSwitchDeadlock Problem




It is not working.
Is there is any chance of having this problem due to the handles invoked
from WndProc()?

Previoulsy i had a problem with Utilitylibrary.Rebar --> WndProc()
recursive call (deadlock). I posted this problem but no one reply --> so
for the temporary survive i kept a condition for termination (to avoid
deadlock). condition is:
if (m.Msg == (int)Msg.WM_WINDOWPOSCHANGED)
return;
if condition reaches then control will be returned from WndProc().

Is this present problem of flickering (when we don't debug) and
ContextSwitchDeadLock exception --(when we debug -- see the exception
below) is due to WndProc() condition??
However please suggest

EXCEPTION DESCRIPTION:
The CLR has been unable to transition from COM context 0x1a0768 to COM
context 0x1a08d8 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a very long running operation without pumping Windows
messages. This situation generally has a negative performance impact and
may even lead to the application becoming non responsive or memory usage
accumulating continually over time. To avoid this problem, all single
threaded apartment (STA) threads should use pumping wait primitives
(such as CoWaitForMultipleHandles) and routinely pump messages during
long running operations.

*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: Help! pumping wait primitives - what is that?
    ... COM context 0x1afb98 for 60 seconds. ... processing a very long running operation without pumping Windows messages. ... CoWaitForMultipleHandles) and routinely pump messages during long running ...
    (microsoft.public.dotnet.languages.vb)
  • How can i implement a message pump with winforms ?
    ... progress of the treatment with a progressbar. ... context 0x189558 to COM context 0x189408 for 60 seconds. ... pumping Windows messages. ... and routinely pump messages during long running operations. ...
    (microsoft.public.dotnet.languages.vc)
  • ContextSwitchDeadlock Problem
    ... As iam working on convertion of C#1.1 to 2.0. ... The CLR has been unable to transition from COM context 0x1a0768 to COM ... processing a very long running operation without pumping Windows ... and routinely pump messages during ...
    (microsoft.public.dotnet.languages.csharp)
  • Pump Messages During Long Operations
    ... "The CLR has been unable to transition from COM context 0x1b0f58 to COM context 0x1b10c8 for 60 seconds. ... The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. ... all single threaded apartment threads should use pumping wait primitives and routinely pump messages during long running operations." ...
    (microsoft.public.dotnet.framework)
  • Re: Memory increase over time
    ... library does is act the same as a queue but has events to execute a job ... The CLR has been unable to transition from COM context ... pumping Windows messages. ... responsive or memory usage accumulating continually over time. ...
    (microsoft.public.dotnet.languages.csharp)