COM Server and Global Variables

COM Server and Global Variables

CVF can produce a COM server from FORTRAN code. It provides a pointer to a buffer for global instance data. The buffers for each instance of the server are independent.

When I tried this, I found that all the other global data (specifically, data in COMMON blocks) was shared among multiple instances. This meant that the COM server could not be used in a multi-user or multi-session environment. The code would have to be rewritten so that all shared variables are in the instance buffer.

Is there a way to deploy the COM server created by CVF in such a way that each instance runs in a different process, and each instance sees its own set of data in COMMON?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.