KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Detecting Parameter Passing Compiled Runtime Errors While Executing Your Code in
PRODUCT: 4D | VERSION: 3.x | PLATFORM: Mac & Win
Published On: August 1, 1996
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

4th Dimension and 4D Compiler include a scheme that enables you to catch Runtime Errors while executing your code in compiled mode. This is available by selecting the Range Checking compiler option while compiling your database.
There are 13 types of runtime errors.
1. Array range check error.
2. Accessing a parameter that does not exist.
3. The pointer is not properly initialized.
4. The destination string is smaller than the source.
5. Invalid character reference.
6. The parameter is an empty string.
7. Attempting to retype by using a pointer.
8. Invalid parameters in an Execute command.
9. Pointer to an unknown variable.
10. Bad usage of a pointer or pointer to an unknown variable.
11. Division by zero.
12. Modulo by zero.
13. The result is out of range.
For more information about compiled runtime errors, refer to the 4D Compiler Reference Manual.
Some of these errors are easy to detect and fix, while some are not.

WIN
http://usdl.4d.com/TN/1996/Windows/TN_1996_33-36_(AUG)/96-34_Runtime_Errors.exe

MAC
http://usdl.4d.com/TN/1996/MacOS/TN_1996_33-36_(AUG)/96-34_Runtime_Errors.hqx