I believe many people who use the Windows operating system sometimes encounter such error messages, then how to deal with such error messages is how to deal with memory errors? How to determine the cause of the error?
"“0X????????” The reference to the memory of "0x00000000" is memory, the memory cannot be "ld"; read” or "written"", and the application is closed.
If you go to ask some "masters", the answer is often the indignation and disdain of "Windows is so unstable." In fact, this error is not necessarily caused by Windows instability. This article will briefly analyze the general reasons for this error.
First, the application does not check the memory allocation failure
When the program needs a piece of memory to store data, you need to use the "function function" provided by the operating system to apply, if the memory allocation is successful, The function will return the newly opened memory area address to the application, and the application can use this memory through this address. This is called "dynamic memory allocation", and the memory address is also the "cursor" in programming. Memory is not always coming in, it is inexhaustible, and sometimes memory allocation will fail. When the allocation fails, the system function returns a value of 0. At this time, the return value "0" does not indicate the newly enabled cursor, but a notification sent by the system to the application to inform that an error has occurred. As an application, you should check whether the return value is 0 after applying for memory every time. If it is, it means that there is a failure, and some measures should be taken to save it, which enhances the "robustness" of the program. If the application does not check for this error, it will use the "thinking inertia" to think that this value is the available cursor assigned to it, and continue to use this memory in subsequent executions.
The real 0 address memory area stores the most important "interrupt descriptor table" in the computer system, and the application is never allowed to be used. In an operating system without a protection mechanism (such as DOS), writing data to this address will cause an immediate crash. In a robust operating system, such as Windows, this operation will be immediately captured by the system's protection mechanism. The result is The operating system is forcibly closed by the operating system to prevent its error from expanding. At this time, the above "write memory" error will occur, and the referenced memory address is "0x00000000". There are many reasons for memory allocation failure failures, memory shortage, system function version mismatch, etc. may have an impact. Therefore, this allocation failure is more common after the operating system has been used for a long time, after installing a variety of applications (including virus programs that are inadvertently "installed"), after changing a large number of system parameters and system files.
Second, the application refers to the abnormal memory cursor due to its own BUG
In the application of dynamic allocation, sometimes there will be such a situation: the program tries to read and write a piece "should The memory is available, but I don't know why, the cursor that is expected to be used in this case has failed. It may be that "forgot" requests allocation to the operating system, or that the program itself has logged off the memory at some point and "not paying attention" and so on. The unregistered memory is reclaimed by the system, and its access right is no longer in the application. Therefore, the read and write operations also trigger the protection mechanism of the system. The only end of the attempt to "illegal" is to be terminated by the operation and all resources are recovered. The laws of the computer world are still much more effective and stricter than humans! Situations like this are all bugs in the program itself, and you can often reproduce errors in a specific order of operations. The invalid cursor is not always 0, so the memory address in the error prompt is not necessarily "0x00000000", but other random numbers. If the system often mentions the error message, the following suggestions may be explained:
Start menu → Run → Enter gpedit.msc to open Group Policy Editor, but an error message appe
We didnt partition the hard disk in our newly purchased computer, so we have to format and partition
I believe everyone knows that if the computer resolution is too low, the computer screen will look v
Many users have been complaining that the computer often crashes, but they dont know what causes the
How to solve the u disk capacity 0 bytes when using the u disk?
Solve the problem of not being able to access the network after reinstalling the system
How to solve the problem of slow picture opening
DEP data execution protection parameter settings
Different bios should use different entry methods
Network essential tutorial: teach you to set up anti-house thief network
How to avoid phishing websites to avoid being fooled
Windows 2000 installation diagram
What should I do if the computer inserts a USB flash drive and then the blue screen?
Keep in mind the four major points of hacking against hacking in Linux
SkyDrive logout switch account?
Win10 10547 is always wrong to restart how to do
Not just how to play special characters, so simple Win7 homemade special symbol method
10 wishes for the Longhorn system
Shouting win8 system minimum configuration requirements
Computer cold start method and role introduction
How about Win10 Mobile Preview 10581? Getting Started Video
Win8 start screen use skills Win8 start interface use tutorial
Win7 system connection XP shared printer error (0X000004) how to solve