Hello,
I have tried to use the new feature to share common memory. But I had program crashes (with access violation) when I used an array twice with different sizes. See the following sample code:
integer :: i
real*4,allocatable,dimension(:) :: a
allocate(a(3), SHARENAME='MyMemory2')
a(1) = 1.
a(2) = 2.
a(3) = 3.
write(*,*) a
deallocate(a)
allocate(a(2048), SHARENAME='MyMemory2')
do i=1,2048
a(i) = float(i)
enddo
write(*,*) a
end
with the debugger I can see, that the array 'a' shows 'Illegal pointer' at position 1025 and further after the second allocate command. Is there a way to release also the sharename, when dellocating the array?
Thanks,
Ralf