Guys, I'm getting this in the VS2005 IDE when I try to debug my code. I'm really at a loss to figure this one out.
"Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized." This does not occur until a method with a particular line of code is entered. Once this method is entered by the debugger, any object more complex than the intrinsic data types such as ints and strings cause this error to be displayed. The methods are as such: ... //Variables are readable before this line this.GridHelper.MarContainer = new MarContainer(myGuid, ThirtyDay, this.GridHelper.StartDate); //And after this line ... public class GridHelper { public GridHelper(Guid guid, MarType type, DateTime date){ ... //Variables are readable before this line Load(guid, type, date, null); //But not after this line } private void Load(Guid guid, MarType type, DateTime startDate, TransactionContext transaction){ //Nothing is readable in here except intrinsic data types ... //This is the line, that when commented out, keeps the ability to display values working _groups.Load(details, type, startDate); } } _groups is a variable that references a custom class (that inherits directly from System.Object) that has no "special" functionality in it whatsoever. Any suggestions or ideas? Thanks, Mike =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com