woensdag 6 januari 2010

Cannot evaluate expression because a thread is stopped

"Capacity = Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized."

This is an error that i've had and i've had to search a long time before i found a solution, the problem was that i had a lot of data that had to bee given to a certain class.

If there is to much data in the parameters then this error can occure,
a simple solution is to make an object, not a struct because that's a dataobject.

Put this object in youre parameters instead of all the different variables,
normally the problem will no longer take place.