3D PLM Enterprise Architecture

Middleware Abstraction - Object Modeler

The Execution Context

The way to control where your request can be executed
Quick Reference

Abstract

This article explains what is the execution context and which values it can take. It includes the following sections:


What Is the Execution Context?

When you request the creation of an object using an object factory, you can indicate, with Windows only, whether this object should be created in the current process, that is the process running the client application, or could be created in another process on the same or on another machine.

It is usually passed as an input argument to the function or method called.

[Top]

The Execution Context Valid Values

The execution context can take the following basic values.

CLSCTX_INPROC_SERVER The client application only accepts objects created and run in the same process.
CLSCTX_INPROC_HANDLER The client application uses only in-proc handlers.
CLSCTX_LOCAL_SERVER The client application uses only objects created and run in a different process than the client application, but running on the same machine.
CLSCTX_REMOTE_SERVER The client application uses only objects created and run on different machines.

These basic values can be combined using the bitwise OR operator to make compound values. For example:

[Top]


History

Version: 1 [Jan 2000] Document created
[Top]

Copyright © 2000, Dassault Systèmes. All rights reserved.