1

私は Visual Studio 2010 を使用しています。現在、ファイルからデータをロードする手順をテストしています。何か問題が発生しました。コンパイラが何に怒っていたのか覚えていません。とにかく、私の手順はまったく実行されず、まるで無視されたかのようです。

そして、私はこれを取得します:

'coursework.exe': Loaded 'C:\Users\Гость\Documents\Visual Studio 2010\Projects\coursework\Debug\coursework.exe', Symbols loaded.
'coursework.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'coursework.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'coursework.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'coursework.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'coursework.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'coursework.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'coursework.exe': Loaded 'ImageAtBase0x4aa50000', Loading disabled by Include/Exclude setting.
'coursework.exe': Unloaded 'ImageAtBase0x4aa50000'
'coursework.exe': Loaded 'ImageAtBase0x49fe0000', Loading disabled by Include/Exclude setting.
'coursework.exe': Unloaded 'ImageAtBase0x49fe0000

デバッガーのオプションを調べてみましたが、何も修正されていません。

ここで、Debug ディレクトリのすべてのファイルを強制終了することを考えています。slnファイルと同じフォルダにあるもの。cpp ファイルが置かれている別の Debug ディレクトリがあります。

これが役立つかもしれないというのは正しいですか?適切なデバッグ ディレクトリを選択しましたか (そこには、exe、ilk、pdb の 3 つのファイルがあります)。

後で追加

これは、問題を引き起こしたと思われる抽出物です。

ifstream myfile ("grablevskij.txt");
    delete[] pointer;

    AR_POINT ar_point = {NULL, 0, 0};   
    POINT * tmp_point = new POINT();

    if (myfile.is_open())
    {       
        string line;
        while (myfile.good() )
        {
            getline (myfile, line);
            int x_first = line.find('(') + 1;
            int x_last = line.find(',') - 1;
            string x_substr = line.substr(x_first, x_last);
            int tmp_x = atoi(x_substr.c_str());

            int y_first = line.find(',') + 1;
            int y_last = line.find(')') - 1;
            string y_substr = line.substr(y_first, y_last);
            int tmp_y = atoi(y_substr.c_str());             
            ar_point.occup++;           
            (*tmp_point).id = ar_point.occup;
            (*tmp_point).x = tmp_x;
            (*tmp_point).y = tmp_y;
            ar_point.p = new_point(ar_point.p, tmp_point, ar_point.occup);          
        }
    }
4

0 に答える 0