Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ContextSwitchDeadlock was detected

4 views
Skip to first unread message

stevo

unread,
May 3, 2010, 8:34:48 AM5/3/10
to
Ak v programe v C# spracuvavam velmi vela veci (triedi a vyhodnocuje slova)
tak to trva mozno aj 5 minut a niekde na zaciatku vyskoci tato hlaska. Ak je
menej veci tak to prebehne rychlo a hlaska nevyskoci.

neviete ci sa da s tymto nieco robit? Je mi jasne ze keby to netrvalo tak
dlho tak hlaska nevyskoci ale ci nahodou neexistuje nejaky iny sposob.
Vyskoci to len pri spusteni v VS ak spustam priamo exe tak nie takze to az
tak nevyhodi ale ak sa da tak by som to nejak poriesil

Dakujem

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

napoveda ku tomu:
http://msdn.microsoft.com/en-us/library/d21c150d(VS.90).aspx

0 new messages