1. The dreaded "Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation" debugger error. I currently get this on a small WinForms app I run every time an exception gets hit, so I have to kill program execution, put a try/catch around it that dumps out hte stack trace, and then re-run because the debugger is effectively dead at this point. I've gotten this before on other projects; once the IDE starts doing this, it doesn't stop and in fact gets worse and worse, even after rebooting the machien.
Reply:
In VS2005 (and earlier) the main cause of functions timing out in the debugger was thread switching (which could be triggered by something as simple as accessing a WinForms property in the wrong context). Since all other threads were stopped, the system would hang until it timed out. In VS2008 we eliminated this issue by hooking thread switching calls (when in debugger expression evaluation) and failing them immediately. So the likelihood that you'll encounter that particular problem should be substantially reduced.
Unfortunately most applications, including VS, deal poorly with slow / unreliable network connections. For now, the best you can do is either fix the lag or disconnect entirely from the network (both of which have their issues). Long term, we need to do a better job of designing applications to deal with the wide ranges of network performance.
David Berg
Developer Division Performance Engineering Team
Considering that this array is to be used for a drop down list. If
you have 300 items are you already over the point of useful? I know
you can "present" it but can a user consume it?
Can you do a dataview from the dt?
--
Stephen Russell
Sr. Production Systems Programmer
CIMSgts
901.246-0159 cell
Do another query against the db with the filter in place.
Or make a dataview off the dt.