I wrote a program that creates a list of all your files from a specified location. It works fine until I add alot of file. I used 'Program Files' to test this. It runs for a bit, and it gives me an Error that I've never seen or worked with before. And I don't know what causing it... First, there's a MessageBox: "No Sysmbols are Loaded for any call stack frame. The source code could not be displayed." Then after pressing the OK Button, Visual Studio shows me this:----------------------------------------------------------------ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition fromCOM context 0x1b2520 to COM context 0x1b2690 for 60 seconds.The thread that owns the destination context/apartment is mostikely either doing a non pumping wait or processing a verylong running operation without pumping Windows messages.This situation generally has a negative performance impactand may even lead to the application becoming non responsiveor memory usage accumulating continually over time. To avoidthis problem, all single threaded apartment (STA) threads shoulduse pumping wait primitives (such as CoWaitForMultipleHandles)and routinely pump messages during long running operations.----------------------------------------------------------------I am still new to C# .Net and I would really appreciate it if someone could help.:)