Help! pumping wait primitives - what is that?

B

Bill Nguyen

below is the error message I received when about 2/3 of the process is done.
Where in my code I sould look for?

Thanks

Bill
---------

The CLR has been unable to transition from COM context 0x1afa18 to COM
context 0x1afb88 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.
 
L

Larry Lard

Bill said:
below is the error message I received when about 2/3 of the process is done.
Where in my code I sould look for?

Thanks

Bill
---------

The CLR has been unable to transition from COM context 0x1afa18 to COM
context 0x1afb88 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.

You might find this thread useful:

<http://groups.google.com/group/micr...read/thread/1e4ac1010ae5920d/03ca1c82ea79287b>
 
B

Bill Nguyen

Larry;
I think you're pointing me to the right direction.
However, teh instructions won't help.
I created this myProject.mda.config and put in the debug folder. Still got
the same error:
<?xml version="1.0" encoding="utf-8" ?>

<mdaConfig>

<assistants>

<contextSwitchDeadlock enable="false" />

</assistants>

</mdaConfig>



Any ideas?



Thanks again



Bill






ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x1afa28 to
COM context 0x1afb98 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top