Have anyone got an exception like this "ContextSwitchDeadLock" RANDOMLY in your program executions?
I have a query linq against an SQL CE source, a very simple one
From Entry in DataContext.Resources Select Entry Where Entry.Key = Key
-Key is of type String.
After I queried, whenever I try to iterate the results, the program gets stuck in the foreach Next... after a while it responds with a dialog telling me ContextSwitchDeadlock.
I have no answer to this. Google neither; this is too random to be debugged. And it happens to me other times, I didn't solve it, I just workaround it using ADO. But I'm really tired of getting this error without knowing what is really happening, and what I'm doing wrong that throws it.
Any help would be really appreciated
Regards
Javier