I developed a WPF application. In this application, iam uploads 200mb photos to the list. After that, Iam adds these images to the canvas. When adding photos to the canvas after a while (i.e., after adding the 10mb images) iam Getting Some error, for example ----
***** The CLR was unable to switch from the COM context 0x10b46f0 to the COM context 0x10b4860 for 60 seconds. A thread that owns the target context / apartment most likely either performs a non-download or processes a very long operation without pumping Windows messages. This situation, as a rule, has a negative impact on performance and may even lead to the application becoming inactive or memory automatically accumulating over time. To avoid this problem, all single-threaded (STA) threads should use transfer waiting primitives (such as CoWaitForMultipleHandles) and regularly send messages during long operations. *****
Is there a way to improve the performance of my application. I need a solution to this problem.
Any suggestions for this.
ibrahimkhan
source
share