I'am running this code highly threaded environment but for some reason
Debug.Assert fails. Why is it and how can I stop it from happening?
public class CMSShop
{
public int items = 0;
public void inc()
{
items ++;
}
public void dec ()
{
if ( items > 0 ) items --;
Debug.Assert ( items >= 0 )
}
}