- No : 1368
- Displayed Date : 2023/04/25 19:00
-
Print
When compiling a D300win project, an error message appears saying 'This variable address: %M* 3.z is treated as a retain memory.' Why does this message appear and how can I avoid it?
When compiling a D300win project, an error message appears saying 'This variable address: %M* 3.z is treated as a retain memory.' Why does this message appear and how can I avoid it?
- Category :
-
Answer
When you do not check 'RETAIN' on the variable worksheet (default), the variable is treated as a non-retain memory.
When you check 'RETAIN,' the variable is treated as a retain memory.
However, if you enter an address in the 'Address' field, whether the variable is treated as retain or non-retain is
determined by the entered address.
If you enter an address '%M* 3.z' (non-retain memory) in the Address field and do not check 'RETAIN,' specification
of retain/non-retain differs between the entered address and 'RETAIN' checkbox, therefore, the error message appears.
To avoid this, check 'RETAIN.'