So I'm working on a Windows Forms for VB.NET in VS 2005 that is highly computational. It gets a ton of data from a database and eventually spits out a report based on the data. Because of the time it takes to run, when I debug I get the following message:
"The CLR has been unable to transition from COM context 0x1a01b0 to COM context 0x1a0320 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 CoWaitForMultip leHandles) and routinely pump messages during long running operations."
Any advice on how to handle this situation? I've tried to make my code as efficient as possible, so I'm going to have to deal with these long periods of computation.
Thanks.
"The CLR has been unable to transition from COM context 0x1a01b0 to COM context 0x1a0320 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 CoWaitForMultip leHandles) and routinely pump messages during long running operations."
Any advice on how to handle this situation? I've tried to make my code as efficient as possible, so I'm going to have to deal with these long periods of computation.
Thanks.
Comment