* This article is written, but for the solution of a runtime error, runtime error up up to what.
Depending on the program and a variety of run-time error occurs because there is no general solution.
Basically if you want to fix a runtime error
A. The program by visiting the manufacturer's or distributor's site, FAQ, Q & A search for
Two. Naver, Google and search on the site
Three. If you did not address inquiries related sites throughout
Just follow this process is
Run-time error (Runtime Error) What?
When you create a program source code of the program after all woven typically goes through the following process. (Source code according to the desired behavior by thinking of the process of creating a 'weave' or 'is coded' is called).
Compile the source code
-> Resources (resource) and objects (object) File links (link) and link edit
-> Run File Creation
-> Run Program
-> Exit
1) compile-time error (Compile-time Error)
Of this process, the first process (the source code compilation) errors that occur during the compile-time error is called. Said referring to the error that occurred during compilation. This error is usually the source code of its own grammatical errors (syntax error) is caused by. In addition, the error handling (handling) is impossible. Even before the program runs as error handling, but of course, and will need to modify the code to Nabal, and a. So this error is corrected in advance in the development process, so regular users do not see this error.
2) The link-time errors (Link-time Error)
Second course (link edit) errors that occur on is called the link-time errors. As with compile-time error is one of the error before running the program. This error is in fact so important here, nor, this term does not write well. This error is mainly required resources (Resource; figure, like a string of additional data into the program refers to) or due to the absence of the library, but otherwise are difficult to resolve. As with any compilation errors by reason of twelve ordinary users encounter is a type of error.
3) a runtime error (Run-time Error)
And the fourth during the run-time errors are called errors that occur. Literally the definition of a run-time error, "error occurred during program execution is". There is no other means. Runtime error when creating it as an Internet search words to describe are the following.
"The program can be adjusted to the environment caused by the environment beyond the error",
"Any object (object) does not exist or try to run the search, or return a value that is not suitable bateumyeonseo caused an error"
This description is not doing anything wrong, but strictly speaking, they all completely wrong. Let's why.
4) the causes of runtime errors
There are many different causes of runtime errors, but is only one apparent reason.
During operation, the program for any reason is wrong to have incorrect data processing run-time error occurs when you try to proceed is to At this time, or adjust the program itself, or the OS interrupts the program stops. Adjust the program itself, a runtime error if the user still will be able to continue using the program. Stop the program, but the OS does not use sikyeotdamyeon were using more data will be evaporated.
Programmers in the development of clear insight into the potential for run-time error occurs if the error code to avoid incorrect processing of pre-putting for users to dialogue box pops colorful, colorful and nicely detailed instructions, but they are not programmers, God unexpected happened when a runtime error (unexpected run-time error) occurs.
So I could not handle the program, what will be an unexpected runtime error? It 'Sewage' It's easy to see what would happen if you think up. Could not handle runtime errors OS (or VM) is finally processed. Finally, the OS run-time error handling to the user, an unexpected runtime error has occurred and then exit the program advertised and the computer operates normally again. This often that you see in the window following the occurrence of a scene is a process.
As discussed earlier, a runtime error because only one superficial he said. If so, the root cause of what? The answer is, "It is so diverse is". Short list a few of them out as follows.
A. Logical combination of incorrect behavior
Two. The OS to determine which program is operating on the orders of the computer when you think that a bad influence
Three. Platform (platform) issue of the difference
'Logical combination of the wrong behavior of' what's that bug thing (bug) is Programmers, the program is always normal and common sense in the direction of the program is designed to operate as a programmer, but said that God is not already clear that the program be able to do strange behavior. Designed to predict and anticipate the direction the program is that it does not work. Then we called it a bug. In this regard, the possibility of a bug in any program that may be. So, like a lift, but the program feedback (feedback) is important.
Of course it is a bug that caused a runtime error does not go straight to. Bugs to work just fine, even (but not the desired direction) bug, and there is a bug that causes a runtime error. So bug trouble handling sick.
Platform of the problems caused by the difference a runtime error is also a problem with the program design. Sleep obvious example, developed the program from DOS in Windows XP is whether it will go back. Of course, Maybe, maybe not.
Most of the programs now being developed by a senior programmer libraries and tools have been developed by using a convenient time and increase productivity and shorten development sikigon, but rather it will be because of the constraints on the platform. The library on a specific platform because there are cases that are optimized. So, all as shown in the example above, the platform also changed the situation changes, the program works. Program design at the end, it fails to predict the run-time error occurs, the program is malfunctioning. But in fact, it is designed to predict if this malfunction can not completely eradicate. All the user's computer is equipped with the same OS and hardware or crushed as much as the program may occur at the same time because you do not have much. To solve this problem, programmers and application platform to reduce the gap between the will to devise a way in which it is the right VM. The VM that runs through the programs which are guaranteed to work on the same platform eseodeunji. Thanks to this platform by the difference a runtime error is getting resolved.
Ah, a moment .... saetneunde story;
Then, the last two cases, such as the fact that all of the above screen is also the cause of the error message. Due to a bug, or malfunction due to platform differences due to the program 'fountain full of shit "(more than right action) and force the OS to stop the program will terminate.
Such "full of shit fountain as" Speaking, notably 'memory involvement' of the can. 'Memory involving' the memory of any program granted by the OS to the other areas than is trying to access. This tightly woven tightly in the operating system as a very risky behavior, OS stopped immediately after the program notifies users forced to terminate. OS a 'dictator' world view is shaped place as a violation of the law. For committing the offense, wondering what? Of course, as stated in statute will be punished.
5) Resolution of runtime errors
Now that we know the cause, we will know how to solve. How could fix a runtime error? The short answer to that question almost normal users can not solve a runtime error. Run-time errors that occur in any program for the 'solution' is known as the creator of the program entirely, or even familiar with the program and the mechanism is suggested by some experts. For general users (as well as experts in here, but ...) just let me know as soon as experts can not but follow. Patch to fix a runtime error is fixed, so the new version to come out will have to wait. But the solution or patch any computer, not the number is valid in all situations, and eventually run-time errors, all people, all of this can be eradicated completely from your computer. The reason is simple. In general, users inside the program, specific operation or task is knowing what is going on. If you have sailed past it, if you know why the error occurs immediately traced out will be able to resolve the error. How to fix a runtime error the core of how the program is to find out what is going wrong.
But you do not know the mechanism that normal users can not solve the runtime error does not mean very much. Programmers (peurogeuraemeodeung OS system programmers) when an error occurs for other programmers are necessarily the cause of the error occurred, and I'll let you know detailed information about such designs. Some of the error message that occurs when the average user can understand very easily. For example, "File Not Found", "can not access the file because it is already in use", "do not have permission to access, such as" Only you can see there is an error message. I noticed that in this case or if the user knows how to touch a computer can be solved quickly. Of course, defeats might geondeuridaga whatnot.
- Conclusion
Well, then runtime error now on the Internet, they explain about the two knows what 's wrong?
"The program can be adjusted to the environment caused by the environment beyond the error"
==> A runtime error that is independent of whether the program can be adjusted.
"Any object (object) does not exist or try to run the search, or return a value that is not suitable bateumyeonseo caused an error"
==> See also this explanation is obscure. Returns the value received is not appropriate to tighten is not a runtime error occurs (of course it can be in OOP).
Conclusion: The run-time error "Error occurred during execution of the program collectively," as it is, more and nothing less.
* Error handling (error handling): handle errors that occur during the execution of the program refers to.
* Platform (platform): OS or program a computer environment, this behavior is collectively.
* VM (Virtual Machine): a virtual machine. In programming, saying the VM is running a program compiled by a compiler that translates the code says to refer to. Intermediate between the hardware and programs, and plays a role in reducing bilateral differences.
* OS (Operating System): Operating Systems
No comments:
Post a Comment