Resizing shared memory

I would like to know if there is a way to resize the QSharedMemory variable (in Qt) after it has been allocated.

thanks

+2


a source to share


1 answer


I haven't found a way to resize the QSharedMemory, but creating a new one isn't very intensive. Unless you are working with a device with very limited memory resources or need to allocate a huge amount of memory), you should avoid creating larger QSharedMemory data and copying.



An alternative would be to write some sort of segmented QSharedMemory, but try the simplest solution first.

0


a source







All Articles