Check actual type and size of shared memory