Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27417

DGV-Opening a Worksheet generated following Error - The Application is in break mode

$
0
0
Hello

Quote:

The Application is in break mode
Quote:

Managed Debugging Assistant 'ContextSwitchDeadlock' : 'The CLR has been unable to transition from COM context 0xe473a8 to COM context 0xe472f0 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.'

Can anyone kindly explain why the above error generated for the following occurences

1. Tried to open Sheets in DGV --- It opened succesfully BUT
Out of all the sheets one sheet (Sheet1$) with sligtly more data into it could not open in required time and was more than 60 Seconds
when Opened the Sheet1$ for First time
It genereated the above mentioned Error

BUT when you open the Other sheets in DGV with slightly Less Data it Opened and then Sheet1$ opened Successfully
The above trials were done 4 to 5 times. But every time Whenever Sheet1$ tried to open first time it generated error

So any methods to avoid this error and Open Sheet1$ first time

2. Also any method to get Sheet Names in DGV as per Sheet TAB order as per Workbook rather than Alphabetically ?


3. Do you think any damaged would have happened to Excel File whith Sheet1$ because in Folder ....BIN>Debug>
File displayed was {(Sheet1.Xlsx}(0)
or any other corruption in Windows because Later on when i tried to open the above
project File could not open ? Form1.Vb and Form1.vb[Design] just disappeared.

SamD
81

Viewing all articles
Browse latest Browse all 27417

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>