[Qt-interest] QSharedMemory::create takes an int... why?

Patrick Vollebregt jeet.nl at gmail.com
Fri Jul 31 11:52:28 CEST 2009


Sorry, that's not true.

On an AMD64 Linux and int in a GCC compiled program is 32 bits.


> As per definition, int is always the width of the cpu register. So on
> 64 bit machines an int should be 64 bit, while on 16 bit machines it
> should be 16 bit.
>
> /Thomas
>
> 2009/7/31 Patrick Vollebregt <jeet.nl at gmail.com>:
>   
>> Hi,
>>
>> Is there a good reason that QSharedMemory::create takes an int?
>>
>> I need to allocate a block of shared memory with a size over 4GB (on a
>> 64bit system), which is not possible with QSharedMemory at the moment.
>>
>> Kind regards,
>>
>> Patrick Vollebregt.
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>     




More information about the Qt-interest-old mailing list