Click here to Skip to main content
16,022,060 members
Please Sign up or sign in to vote.
2.11/5 (2 votes)
See more:
I am getting this error at foreach loop "function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation." and getting system.out memory exception
in the following code

int BookingProductFeeID = GlobalBo.BookingPeoductfee.SelectAll().Where(c => c.BookingID == BookingID).First().BookingProductFeeID;
var BookingItems = GlobalBo.BookingItems.SelectAll().Where(c => c.BookingProductFeeID == BookingProductFeeID && c.DriverExperienceID.HasValue);
foreach (BookingItem c in BookingItems)
Posted
Updated 26-Nov-14 23:09pm
v2
Comments
Dave Kreskowiak 29-Nov-14 1:38am    
OK, that's not a problem in your code. That's a problem in the debugger. You have to restart your app and set a breakpoint in a different location, probably better to be inside the foreach loop than on it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900