![]() 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. 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. 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. The CLR has been unable to transition from COM context 0x592b88 to COM context 0x592cf8 for 60 seconds. No issues while writing 400, then the application throws the exception Error saving file or System.OutOfMemoryException or ContextSwitchDeadlock was detectedĪlso showing the following error (inside the visual studio window): The application will read an Excel file, store that values in to a Data Table, do some process and write that processed information in to a new Excel file. ![]() I have developed a Windows-Form application using C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |