在线程加上这句
CString sstr;
sstr.Format(_T("数量 %d \n"), Markingcount);
cautolig->GetDlgItem(IDC_STATIC4)->SetWindowTextW(sstr);Debug就0x00E3A88E (mfc140ud.dll)处(位于 CMFCauto.exe 中)引发的异常: 0xC0000005: 读取位置 0x00000020 时发生访问冲突。如有适用于此异常的处理程序,该程序便可安全地继续运行。