TestDataType.cpp
Код: Выделить всё
#pragma data_seg(".shared")
TestDataType testDataType;
#pragma data_seg()
void PrintTestData() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79098569/why-does-system-accessviolationexception-happen-when-trying-to-cout-a-const-char[/url]
Мобильная версия