473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

The CLR has been unable to transition...for 60 seconds....

I get this A LOT while I'm stepping thru my code in Debug mode.

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

Is there a work around because sometimes I take longer than 60 seconds to go
over my next line of code.
Jul 28 '06 #1
7 33077
How long are your lines of code????!!!

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Rob R. Ainscough" wrote:
I get this A LOT while I'm stepping thru my code in Debug mode.

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

Is there a work around because sometimes I take longer than 60 seconds to go
over my next line of code.
Jul 28 '06 #2
Rob,

This sounds like the ContextSwitchDeadlock Managed Debugging Assistant
(MDA). It can be deactivated by going into Debug | Exceptions and then
uncheck ContextSwitchDeadlock underneath Managed Debugging Assistants.
It can also be deactivated via the app.config. But, I wouldn't just
blindly deactivate this MDA without at least knowing why it's
occurring.

Brian

Rob R. Ainscough wrote:
I get this A LOT while I'm stepping thru my code in Debug mode.

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

Is there a work around because sometimes I take longer than 60 seconds to go
over my next line of code.
Jul 28 '06 #3
Brian,

How can I determine why it is occuring? This always happens if i spend more
than 60 seconds on a single line of code, say if I'm looking at a long
complex string containing values that I parse out and I'm checking positions
or content within the string. Or if I step thru code and go get a cup of
coffee and return and the try to step to the next line.

What are the implications with "deactivating" this MDA option?

Thanks, Rob.
"Brian Gideon" <br*********@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Rob,

This sounds like the ContextSwitchDeadlock Managed Debugging Assistant
(MDA). It can be deactivated by going into Debug | Exceptions and then
uncheck ContextSwitchDeadlock underneath Managed Debugging Assistants.
It can also be deactivated via the app.config. But, I wouldn't just
blindly deactivate this MDA without at least knowing why it's
occurring.

Brian

Rob R. Ainscough wrote:
>I get this A LOT while I'm stepping thru my code in Debug mode.

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

Is there a work around because sometimes I take longer than 60 seconds to
go
over my next line of code.

Jul 28 '06 #4
Rob,

I'd say it's occurring because you are essentially stalling the message
loop by spending a lot of time stepping through code. In your case
it's probably more of a nuisance than anything else. I'd just disable
it. The implications of disabling it are that you may lose a useful
tool for discovering bugs before you release the application. MDAs are
disabled in release builds anyway. That's why you only see it during a
debugging session.

Brian

Rob R. Ainscough wrote:
Brian,

How can I determine why it is occuring? This always happens if i spend more
than 60 seconds on a single line of code, say if I'm looking at a long
complex string containing values that I parse out and I'm checking positions
or content within the string. Or if I step thru code and go get a cup of
coffee and return and the try to step to the next line.

What are the implications with "deactivating" this MDA option?

Thanks, Rob.

Jul 28 '06 #5
Brian,

Yes, just a nuisance, I will disable -- but to be honest, I haven't found
where in the VS 2005 I can disable? No such option under Debug. Is this a
C# only option?

Rob.

"Brian Gideon" <br*********@yahoo.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Rob,

I'd say it's occurring because you are essentially stalling the message
loop by spending a lot of time stepping through code. In your case
it's probably more of a nuisance than anything else. I'd just disable
it. The implications of disabling it are that you may lose a useful
tool for discovering bugs before you release the application. MDAs are
disabled in release builds anyway. That's why you only see it during a
debugging session.

Brian

Rob R. Ainscough wrote:
>Brian,

How can I determine why it is occuring? This always happens if i spend
more
than 60 seconds on a single line of code, say if I'm looking at a long
complex string containing values that I parse out and I'm checking
positions
or content within the string. Or if I step thru code and go get a cup of
coffee and return and the try to step to the next line.

What are the implications with "deactivating" this MDA option?

Thanks, Rob.


Jul 30 '06 #6
Rob,

Right click on the toolbar area and select Customize. You'll find it
in the list of commands under Debug. Just drag it up to your Debug
menu. It wasn't in the menu with my install either.

Brian

Rob R. Ainscough wrote:
Brian,

Yes, just a nuisance, I will disable -- but to be honest, I haven't found
where in the VS 2005 I can disable? No such option under Debug. Is this a
C# only option?

Rob.
Jul 31 '06 #7
Brian thanks, Rob.

"Brian Gideon" <br*********@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Rob,

Right click on the toolbar area and select Customize. You'll find it
in the list of commands under Debug. Just drag it up to your Debug
menu. It wasn't in the menu with my install either.

Brian

Rob R. Ainscough wrote:
>Brian,

Yes, just a nuisance, I will disable -- but to be honest, I haven't found
where in the VS 2005 I can disable? No such option under Debug. Is this
a
C# only option?

Rob.

Jul 31 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Steven Bethard | last post by:
Jack Diederich wrote: > > itertools to iter transition, huh? I slipped that one in, I mentioned > it to Raymond at PyCon and he didn't flinch. It would be nice not to > have to sprinkle 'import...
1
by: Terry | last post by:
Hi, I am looking for a javascript that can do a banner rotation of multiple images with nice transition between them. The pictures will be displayed automatically upon loading the pages. ...
3
by: Richard A. DeVenezia | last post by:
I hope this is the end of my present 'discovery' phase. I've learned alot about JavaScript in a short time and my head hurts. The following is what came out of all my questions and all the...
1
by: Busy | last post by:
Hello Everyone Please can someone point me in the direction of a really good tutorial or discussion on PHP page transition? What I'm looking for is coverage of page transition that covers: ...
1
by: VMI | last post by:
I'm working on a screensaver and I want to be able to switch between images smoothly. Currently, it shows one image and after X seconds, it moves to the next pic. Is there any way I can add some...
2
by: Emil | last post by:
Hi, if you open the link below and click on "Show Me" and then "Toggle Transition" Button you will see a wonderfull fade in / fade out transition of 2 pictures. ...
14
by: Gale | last post by:
I wrote a simple script for image rotation. now i need to have some transition effect betwean images in JS What do you suggest ? Thank you
1
by: Don Rixtown | last post by:
I ran into a very strange error tonight. I was working with web services and typed datasets. The web server I was using happens to be on the other end of a virtual network (Hamachi). Everything...
4
by: scoobydoo9749 | last post by:
So I was on here the other day looking for help with the getElementByName method and recieved excellent help quickly. (Thankyou GITS) Now, I'm looking for some help with making some dynamic content...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.