[Qt-interest] Shared Memory - How to Increase System Size Past System-Imposed Size Restrictions

Ragu Vijaykumar ragu at myosight.org
Mon Feb 15 10:28:57 CET 2010


Hi!

I have a program in which I am trying to write a lot of data to shared memory using QSharedMemory. The program works when I am writing less than 4 MB of data to the Shared Memory, but after the data exceeds 4MB, I get an error (InvalidSize) with the error string reading "QSharedMemory::handle: system-imposed size restrictions". How can I increase the size of the Shared Memory buffer on my system?

I'd like to write up to 500MB of data to the shared memory buffer. I have over 12 GB of RAM on my system with plenty free (>>8GB) at runtime.

I am running Qt 4.6 64 bit on Mac - using Cocoa.

Thanks!

Ragu



More information about the Qt-interest-old mailing list