Dialog: Project Settings: Library development
Symbol:
Function: Configuration of the parameters for the Check all Pool Objects command. This command is used especially for libraries in order to check that all objects can be compiled correctly.
Call: Project → Project Settings, Library development category
Requirement: A project is open.
During the compile process of an application, only the functions blocks/programs/functions which are actually used directly or indirectly by the application code are compiled. However, the Check all Pool Objects command also checks the function blocks/programs/functions which are not used. If possible, all execution paths in the code should be taken into account.
Scan | Scans all function blocks/programs/functions of the library and enters the compiler defines found as a comma-separated list in the Compiler Defines to Use overview. For cascading |
Pointer size to use | If you save a POINTER variable in a DWORD variable in the library, then this library can be compiled only for 32-bit devices. To detect and avoid this problem, you can specify the pointer size which should be specified for the Check all Pool Objects command. You can select the following values:
The following example shows how to use the Check all Pool Objects command to detect invalid assignments for the 64-bit pointer size: FUNCTION F : INT VAR ptr : POINTER TO BYTE; ptrSave : DWORD; END_VAR ptrSave := ptr; This assignment results in the error C0032: Type 'POINTER TO BYTE' can not be converted to type 'DWORD'. Use the following declaration for ptrSave : __XWORD; |
For more information, see: Check all Pool Objects