想申请一块空间,大小为1024*8
在main函数中申请没有问题,在创建的子任务中申请失败。更改申请的大小即可成功。
想问:在任务中动态申请内存需要注意什么问题,需要有哪些配置。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
想申请一块空间,大小为1024*8
在main函数中申请没有问题,在创建的子任务中申请失败。更改申请的大小即可成功。
想问:在任务中动态申请内存需要注意什么问题,需要有哪些配置。