2.40: AV in gflAutoCrop using color = NULL

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

MaierMan
Posts: 78
Joined: Wed Aug 04, 2004 8:32 pm

2.40: AV in gflAutoCrop using color = NULL

Post by MaierMan »

On XP (SP1 still) (and using CBuilder6) Im getting AVs in subsequent calls after using gflAutoCrop like this:

Code: Select all

gflAutoCrop(BMP, NULL, NULL, 85);
eg. calling gflResize afterwards thows an AV.

When using

Code: Select all

GFL_COLOR c;
gflGetColorAt(BMP, 0, 0, &c);
gflAutoCrop(BMP, NULL, &c, 85);
such subsequent calls seem to work fine.

Documentation suggest that this is exactly what gflAutoCrop is doing when calling it with color = NULL...

Didn't test with other platforms/compilers however...
MaierMan
Posts: 78
Joined: Wed Aug 04, 2004 8:32 pm

* bump *

Post by MaierMan »

Anybody (like Pierre eg.) able to confirm?
Any work on this issue in progress?
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 2.40: AV in gflAutoCrop using color = NULL

Post by xnview »

MaierMan wrote:On XP (SP1 still) (and using CBuilder6) Im getting AVs in subsequent calls after using gflAutoCrop like this:

Code: Select all

gflAutoCrop(BMP, NULL, NULL, 85);
eg. calling gflResize afterwards thows an AV.

When using

Code: Select all

GFL_COLOR c;
gflGetColorAt(BMP, 0, 0, &c);
gflAutoCrop(BMP, NULL, &c, 85);
such subsequent calls seem to work fine.

Documentation suggest that this is exactly what gflAutoCrop is doing when calling it with color = NULL...

Didn't test with other platforms/compilers however...
Yes a bug
Pierre.