Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2007, 05:51 AM
Authorized User
 
Join Date: Nov 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default ContextSwitchDeadlock was detected

Hi Experts
My data is bulky, more than 10000 records. i want to insert it into a table. but ContextSwitchDeadlock was detected. when i click on the continue button. then Data Inserted successfully.
Pls Help me to solve this problem.

Message: The CLR has been unable to transition from COM context 0x19fd98 to COM context 0x19ff08 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.


Thanks and Regards
Kumar Ashish
9350789189
__________________
Thanks
Kumar Ashish
[email protected]
 
Old May 17th, 2007, 10:36 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can switch this off while debugging:

http://harriyott.com/2006/05/context...-detected.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
VS .NET has detected...not running ASP.NET version rstelma ASP.NET 1.0 and 1.1 Professional 17 May 24th, 2008 04:04 AM
ContextSwitchDeadlock was detected pshahp C# 2005 0 April 2nd, 2008 09:27 AM
web server not detected maniaug81 .NET Web Services 2 February 18th, 2005 08:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.