Re: gtk_image_new_from_file and mmap



Hi James!

The problem was solved by fixing the errno problem as suggested by Diego,
but this information you gave is still very helpful for my project.
The size of len is indeed more or less the same as my current shmmax (32Mb).

Thanks,

Torbjoern

> 
> How big is len?
> 
> 
> Try doing sysctl -A and look to see how much shared memory is available
> on the machine (kernel.shmmax). The default could be quite low.
> 
> It may well be that loading the pixmap is enough such that you cannot
> mmap the entire region on your device that you would like to.
> 
> You can change this by editing /etc/sysctl.conf
> 
> James





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]