riktek
Member
- Local time
- Today, 12:13
- Joined
- Dec 15, 2023
- Messages
- 127
I'm mostly seeking to confirm my understanding but the question is whether Class_Terminate() runs on or immediately after a project reset.
I don't think so.
Some sources (including LLMs) state otherwise, however, equating a reset with clearing the sole variable containing an instance of a class and stating affirmatively that the event procedure will, or should, run.
What I observe, however, is that, while resets that I trigger unquestionably clear variables containing pointers to class instances, this does not invoke code in the event procedure. I can trigger that code only by clearing the variable or assigning a new class instance to it, which of course displaces the prior object.
I'm curious others' thoughts on the topic, and thanks for any input.
I don't think so.
Some sources (including LLMs) state otherwise, however, equating a reset with clearing the sole variable containing an instance of a class and stating affirmatively that the event procedure will, or should, run.
What I observe, however, is that, while resets that I trigger unquestionably clear variables containing pointers to class instances, this does not invoke code in the event procedure. I can trigger that code only by clearing the variable or assigning a new class instance to it, which of course displaces the prior object.
I'm curious others' thoughts on the topic, and thanks for any input.