I was looking for some examples of using a recommended (and proven) coding technique to ensure that DLLs are thread safe and callable multiple times from PowerLanguage. Unfortunately the SDK that is referenced from TS is at best sparse. The last document provided (revision date: 9/30/11) indicates use of the InterfaceObject.Tag:
The problem here is that Tag (at least in the version provided by PLKit.dll) is a 32bit int and I am concerned about casting 64bit address spaces and the resultant effects.Tag: This property may be used to store or retrieve any
extra data for a particular need. Example: Store
pointer to customized data type objects.
Is anyone using a singleton pattern and safely storing pointers to ensure single instances of objects that can provide a bit of a template?