Это ошибка, которую я получаю при запуске программы:
An unhandled exception of type 'System.AccessViolationException' occurred in test.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Могут ли быть следующие утверждения причиной проблемы?
int max_index=100;
int max_avail=100;
vector<index_S> vec_index(max_index);
vector<avail_S> vec_avail(max_avail);
В приведенном выше коде index_S
иavail_S
являются структурами.Я запускаю эту программу на удаленной Visual Studio 2008.
struct avail_S
{
long off;
int size;
};
struct index_S
{
int key;
long off;
};
Спасибо!