MTS and Passing Direct Reference

MTS and Passing Direct Reference

MTS objects clients should never have access to unsafe references. A client application should never be passed a direct reference to an MTS object. Once such a reference is passed outside the object’s context, it is no longer a valid reference. SafeRef function should be used by an object to obtain a reference to itself that’s safe to pass outside its context (say to a client). This function returns a reference to the context wrapper instead of a reference to the object itself. If this is not done, then the client application can make a call on the MTS object without going through the context wrapper. This defeats the interception scheme set up by the MTS run time. For example:

 Set MyObject = SafeRef (Me) and pass 
MyObject to the client application

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.

Sitemap