RunTime报错的一个原因,以及截图

时间:2023-03-09 03:49:46
RunTime报错的一个原因,以及截图
    const char * handle;
handle = m_conn->openFile(szRemoteFile,"writeOnly","createTruncate");
if (handle == ) {
return false;
}
Remote_File = QString(szRemoteFile);
success = m_conn->UploadFile(handle, szLocalFile);

报错:RunTime报错的一个原因,以及截图

原因是handle = "00000000",可是它是字符串,偏偏不满足if (handle == 0 ),依然会执行UploadFile,执行的时候就报了上面那个错。但是这仅仅是表面现象,在Release方式下执行依然没有任何问题,我也不知道为什么!