The following error is often encountered in the compilation running engineering of the PB program: PB90.EXE-application error "0x00000000" memory referenced by the "0x00000000" instruction. This memory cannot be "read"
To terminate the program, click "OK" to debug the program, please click "Cancel"
what is the root cause? The rough analysis has the following reasons: 1. Call the external function error, which is also the most common mistake. This error occurs when the program exits it prompts the above error; the reason is that the parameter of the call or the data type of the return value does not match the data type of the PB! If the String type in Delphi cannot be converted to a String type of PB. Solution to change the parameter type of the function, if you still can't solve the use of external functions. 2, the shortcomings of the code itself. This error occurs in the running phase of the program, which causes this error when executing the problem code. The solution is to use Debug to find the problem code, fix it! 3. After compiling as an executable file, run an error in the EXE file. This error is generally not a code error, because the compiler will check the code when compiling. This problem is common in compiling code into Exe DLL mode, I have repeatedly experimented that the chance to compile the EXE DLL mode is much greater than a single EXE or EXE PBD mode. Therefore, it is recommended to compile the program into Exe PBD. The solution is to change the compilation mode. 4, the PB itself's bug. This error is a lot of PB users. PB gives a feeling is fragile, such a problem can only be solved by patching Ding!