sharing data between COM methods

sharing data between COM methods

rahzan's picture

Noramlly you do this using the elements of ObjectData, but as I;ve found out it does not allow allocatable arrays.
I tried to use a common block to share data between different COM methods but the compiler says that there are conflicting attribs... Perhaps it is the fact that the shared data is an assumed size array like:

method1(Objdata,x)
real(4),intent(inout):: x(1:)
common /dataarray/ x
end method1
...
method2
(what if any declaration goes here for x?)
common /dataarray/ x
...

Any way to do this?
Thanks, TSH

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