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

    const char * handle;

    handle = m_sftp->openFile(szRemoteFile,"writeOnly","createTruncate");

    if (handle == 0 ) {

        return false;

    }

    Remote_File = QString(szRemoteFile);

    success = m_sftp->UploadFile(handle, szLocalFile);

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

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

你可能感兴趣的:(Runtime)