c++ - Malloc failed on ps4 development -


i malloc(180k) error in program, commented them , write code below in same file. still return bad ptr. (i breakpoint @ return)

int main (int argc, char *argv[]) {     char *b = (char *)malloc(sizeof(char)*1000000);     return exit_success; } 

i suppose issue on computer, open other program on same condition (46% memory used), (i did not close pre project), write same code in main() first, , malloc returns normally. should issue?

ps: windows7 x64 (4g) think remain @ least 1g memory,because memory used showed in explorer 46%.

i asked question sce, , response had add limit in play station 4 project. must declare global virable size_t scelibcheapsize = 1*1024*1024*50; set heap, otherwise it's default value 64k or 256k?(i forget it..)


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -