Home > Back-end >  Runtime appear 0 x00000000 this memory cannot be written
Runtime appear 0 x00000000 this memory cannot be written

Time:11-23

Made up an iterative function, compilation sure, runtime 0 x00422b7e instruction references 0 x00000000 memory, the memory cannot be written,
This function at several times, don't think that have what problem, you met? Is out of memory, or I didn't find the pointer to the code there is a bug

CodePudding user response:

This is a null pointer
0 x00000000You look at the code and what is not initialize pointer

CodePudding user response:

reference 1st floor qybao response:
0 x00000000 this is null pointer
You look at the code and what is not initialize pointer

I saw several times, are not found free a pointer, and if it is a null pointer is not be submitted to the general can't read it from an empty address, this is to write, I wonder if the out of memory

CodePudding user response:

O code stick up to look at it

CodePudding user response:

Debugging and running your program in the original poster can try * p this one statement next breakpoint can view it in real-time during the operation of the value of the time is found that its value is 0

CodePudding user response:

Advice first learn to write the program debugging methods, knife at no cost of your job

CodePudding user response:

Add a breakpoint to see where there is a problem, running analysis to solve again

CodePudding user response:

Post code, or say you don't believe it

CodePudding user response:

This address can't really read, write, also can not suggest ~ post code
  • Related