I am using Visual Studio 2008. I dynamically declared the big_massive variable:
unsigned int *big_massive = new unsigned int[1073741824]
But when I tried to debug this program, I got the following error: Invalid allocation size: 4294967295 bytes. Hope there is some way to avoid such a mistake? Thank!
32- x86 sizeof(int)==4 ( 4 ). 4 , (2 3 32- Windows boot.ini Windows, , 32- 64- Windows, 4 ).
sizeof(int)==4
boot.ini
64- 4 , .
32- Windows 64- Windows 32- (WoW64): 2147483648 , 1073741824: 4294967296 , .
Source: https://habr.com/ru/post/1539260/More articles:android app autoupdate if apk is present then remove - androidHow to set remember me always true or loggedin in grails? - spring-securityJava application to install APK on Android - javaIs it recommended to store program sources in a single file (as opposed to lib sources)? - goWhy am I getting "Invalid distribution size: 4294967295 bytes" instead of std :: bad_alloc exception? - c ++@singleton ведет себя как @stateless bean - javaHow to dynamically change a Crystal Report database connection - c #Странное поведение шрифта после GraphicsEnvironment # getAvailableFontFamilyNames()? - javaHow to get qualified git url remote using url. .insteadOf? - gittranslatesAutoresizingMaskIntoConstraints and IB - iosAll Articles