Re: [Gimp-developer] 2GB limit on Resource Consumption: Tile cache size
- From: Tobias Jakobs <tobias jakobs gmail com>
- To: Elle Stone <l elle stone gmail com>
- Cc: Gimp-developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] 2GB limit on Resource Consumption: Tile cache size
- Date: Tue, 18 Sep 2012 15:35:40 +0200
On Tue, Sep 18, 2012 at 2:15 PM, Elle Stone <l elle stone gmail com> wrote:
> ...
>
> The warning says that the "type" for the tile cache size is "gint",
> which means 2GB really is the limit. At least on my system. To check
> the maximum that "gint" can hold on my system, I added in a printf
> statement in the lcms plug-in code that I'm working on, to print out
> G_MAXINT, which turns out to be 2GB. See
> http://developer.gnome.org/glib/stable/glib-Basic-Types.html#G-MAXINT:CAPS.
>
> As anything greater than 2GB exceeds the limit of what "gint" can
> hold, I don't see how setting anything greater than 2GB through
> "Preferences" actually gets you more than 2GB.
For me, as a not C developer, it looks like this should be changet to
guint or even better guint64. But lets wait what Mitch things about
this.
Regards
Tobias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]