KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Table Triggers and Thread-Safe Execution Caution
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: June 21, 2021

The code used for table triggers can significantly impact if a method can be performed in a preemptively or not.

If one table has non-thread-safe code and a method uses a pointer to a table, the method will not be thread-safe. Even if all of the other tables are thread-safe and the method does not ever reference the problematic table, the 4D compiler does not know this and will not let the method run preemptively.

Therefore caution should be practiced if a method should be perfomed preemptively and references a table from a pointer.