473,387 Members | 1,512 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,387 software developers and data experts.

Please tell me what this error means and how to resolve it (in C#).

Hello All.

I have made a simple college project and getting this error message only for the first time run. And it won't show if i run the same algorithm for the second time (before closing - means i have kept an option to re-run the algorithm before close). Although it gives the error msg, I will get proper output. I'm pasting the Error Message here...


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


Please anybody help me in resolving it.
Dec 26 '10 #1
1 1121
Plater
7,872 Expert 4TB
Run your COM interactions in some other thread then the main gui thread.
This message seems to popup when you're doing work in the GUI thread with a COM object and the main thread has gone on too long without being able to process windows messages. (If this is all managed code, well you have other issues, but a quick fix would be to call Application.DoEvents() inside whatever busy loop you have)
Dec 27 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: What-a-Tool | last post by:
I'm going out out of my mind trying to get this to work with no luck. The error message I get is at the bottom. Can someone please tell me what I'm doing wrong here. I've tried this a million...
0
by: Raghuraman | last post by:
Hai , I have designed a report which involved 2 tables thru DSN.From vb i am connecting the report thru the Crystal report control . The thing is the name of the database and the table would differ...
11
by: venkatesh | last post by:
thank u for accept my question n your group I am a beginner for c please tell what r the websites provide the entire c language operation I can able to learn from it and explore
5
by: jam | last post by:
when I use admin account to run it, it is okay, but when I ause other account, it gives this error.... please help~~~ thx
5
by: vbMental | last post by:
I am deep into a project and cannot get this to work correctly. I am trying to make a custom error page that will be able to know what exception occurred. I already know about the defaultRedirect...
1
by: Alan Silver | last post by:
Hello, I have the following line of code in a script... litMsg.Text = Server.MapPath("/"); where litMsg is an ASP.Net Literal control. When I try and run this page, I get the error ... ...
2
by: venkatesh | last post by:
hai , i am using turboc++ compiler to run my c program. i written an program with structure sa foolws struct s { float x; }y; when i am accessing the variable x it shows the following error...
2
by: PencoOdStip | last post by:
http://www.slibe.com/image/7e86356e-stop/ I am beginner and tryin new stuff and get this error few times. What it means? Why c++ stops working? It just keeps linking...
2
by: Rawrcraze | last post by:
Unforeseen database error, noted. phpBB : Critical Error Could not query database for theme info DEBUG MODE SQL Error : 1064 You have an error in your SQL syntax; check the manual that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.