Run the Demo Application (SharedSingletonClass.4DProject) in 4D 20 R5 or newer.