c++ - Why i can't delete my array pointer when i declared it with the 'new' keyword - Stack Overflow
Your bufferX and bufferY variables are not declared as class members but rather as variables in the asd() function/constructor and they are deleted when that function exits.
You should declare them as class members
#*buffery #retain #code #bufferx= #please
https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword
Видео c++ - Why i can't delete my array pointer when i declared it with the 'new' keyword - Stack Overflow канала ResponseXAI
You should declare them as class members
#*buffery #retain #code #bufferx= #please
https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword https://stackoverflow.com/questions/54384257/why-i-cant-delete-my-array-pointer-when-i-declared-it-with-the-new-keyword
Видео c++ - Why i can't delete my array pointer when i declared it with the 'new' keyword - Stack Overflow канала ResponseXAI
Комментарии отсутствуют
Информация о видео
30 июня 2025 г. 12:54:02
00:00:30
Другие видео канала