Home > Mobile >  Everybody look, why write a 8 ~ 11 lines, in Qt program directly collapses
Everybody look, why write a 8 ~ 11 lines, in Qt program directly collapses

Time:10-09

No 8 ~ 11, the program can run, join the abnormal end,

CodePudding user response:

Your item pointer array definition, right

CodePudding user response:

reference 1/f, today also to its feet oh full response:
your item pointer array defined right

Is right or complains of 16 units pointer,

CodePudding user response:

What do you look at is concrete has a problem, is a custom class or setPos method

CodePudding user response:

reference 3 floor today also to its feet oh full response:
what do you look at is concrete has a problem, is a custom class or setPos method

Ok?? , qt itself is not stable, and can successfully run out now, but thank you

CodePudding user response:

Hey hey, could run, that is, when the application memory collapse, look at the program run time is the memory footprint is too high

CodePudding user response:

refer to fifth floor today also to its feet oh full response:
hey hey, running is good, that is, when the application memory collapse, look at the program running time is memory footprint is too high

Then how to solve? Cry, cheng and abnormal ended, was successfully run out twice,

CodePudding user response:

refer to fifth floor today also to its feet oh full response:
hey hey, running is good, that is, when the application memory collapse, look at the program running time is memory footprint is too high

If you want to change the computer, accounting for 44% of the memory

CodePudding user response:

If have a new local variable inside a function, after not delete

CodePudding user response:

4th floor, reference pictures - wave response:
Quote: refer to the third floor will feet oh full reply today:
what do you look at is concrete has a problem, is a custom class or setPos method

All right? , qt itself is not stable, and can successfully run out now, but still thank you


Is your program is not stable,,,

CodePudding user response:

reference 7 floor pictures - wave response:
Quote: refer to the 5 floor today also to its feet oh full response:
hey hey, running is good, that is, when the application memory collapse, look at the program run time memory is memory footprint is too high

If you want to change the computer, accounting for 44% of memory
your project? Or computer configuration is very low? Is the total occupied or is your program to account for 44% of the memory, so if you are no more than the business that may need to optimize the process problems in computer also not line, then look at the program just run and test for a period of time after the business if there is a growing memory, there is a word is a memory leak, need you to screen all applications where memory is released,

CodePudding user response:

You write, if you repeat this function calls, memory will increase, will surely collapse, because you have been in the new, and not be destroyed, suggest that in the constructor first new 16 variables first,
  •  Tags:  
  • Qt
  • Related