R
r.z.
This piece of code crashes my app:
basic_ifstream<TCHAR> file(levelfilepath, ios_base::binary);
unsigned int name_length;
file.read( (TCHAR*)&name_length, sizeof(unsigned int) ); //crashes here -
file is open and contains binary data
It may take me hours to find out why this is incorrect, so if you know it,
please tell me.
basic_ifstream<TCHAR> file(levelfilepath, ios_base::binary);
unsigned int name_length;
file.read( (TCHAR*)&name_length, sizeof(unsigned int) ); //crashes here -
file is open and contains binary data
It may take me hours to find out why this is incorrect, so if you know it,
please tell me.