#Persistent
Posted: 12 Apr 2014, 08:57
What is the use case for restoring the #Persistent directive?
#Persistent wrote:Some cases where this directive might be needed (if there are no running threads or hotkeys, timers, etc.) include:
- Scripts which use RegisterCallback and DllCall to respond to events, since those functions don't make the script persistent.
- Scripts which create or retrieve COM objects and use ComObjConnect to respond to the object's events.