I have suddenly started to encounter a error when running my application. I place a breakpoint on the offending line:
m_lbWeeks.SetCheck(iIndex, BST_CHECKED);