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

    const char * handle;
    handle = m_conn->openFile(szRemoteFile,"writeOnly","createTruncate");
    if (handle == 0 ) {
        return false;
    }
    Remote_File = QString(szRemoteFile);
    success = m_conn->UploadFile(handle, szLocalFile);

报错:

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

原文地址:https://www.cnblogs.com/findumars/p/4496033.html