Is it possible to indivisibly save the address of a procedure, something like the commented-out lines in
Like this?
I'm not sure whether that helps, with OnBeep being predefined and potentially accessible to other parts of the system.
I'm not necessarily saying that I'm worried about the thread-safety of this, but I've got this gut feeling that the more that can be done to stop that procedure address being handled as two 32-bits rather than a single 64-bit.
MarkMLl