The Singleton function is behaving differently between my desktop and my laptop, even in a compiled file. For some reason on the laptop, it returns a handle every time the function is called regardless of whether the $sOccurrenceName value is already used or not.
I took this code and compiled:
#include <Misc.au3>
#include <Debug.au3>
$a = _Singleton('test', 1)
$b = _Singleton('test', 1)
MsgBox(0, '', _DebugBugReportEnv() & @LF & $a & @LF & $ B)
When run on my