close
Delete point時,point比原來的記憶體還大,就會出現這問題
此範例中,swprintf會重新配置記憶體
WCHAR *pDrive = new WCHAR;
TRACE("size:%d", sizeof(*pDrive));
::swprintf(pDrive , L"%s", this->m_sCurrentDrive);
this->m_PowerCycleThreadPara.drive = *pDrive;
delete pDrive;
VC 6.0 Error Msg
VC 2013 Error Msg
全站熱搜
留言列表