PickBASIC / FlashBASIC
Recompiling a trigger
.mdBy default, when the FlashBASIC code for a trigger is recompiled, it is not immediately used by the application. All files using the trigger must be closed for the new copy of the code to be taken into account.
To change this behavior, use the Load Trigger at Each File Open check box
in the FlashBASIC tab of the D3 Device Manager.
- If the check box is not selected, then the default behavior will be used.
You must close all files using the trigger before the latest version is used.
- If the check box is selected, the alternate behavior will be used.
You do not need to close files using the trigger before the latest version is used.
The latest code is picked up the next time the trigger is run. Obsolete versions show a type of "Old" and will be released when all files using the trigger are closed.
Note: Recompiling a trigger many times while the file is in use can lead to many obsolete copies of
the code in the FlashBASIC code section. There is no limit to the size of this section, and as
it grows larger, it might consume swap space.