You don't offer enough info for me to do a test, but one possibility: Are you sure that Results, which is obviously a pointer, has been initialized before use? Same goes for SStat.