Page 1 of 1

2.40: AV in gflAutoCrop using color = NULL

Posted: Sat Jul 09, 2005 2:32 pm
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...

* bump *

Posted: Tue Jul 26, 2005 6:29 pm
by MaierMan
Anybody (like Pierre eg.) able to confirm?
Any work on this issue in progress?

Re: 2.40: AV in gflAutoCrop using color = NULL

Posted: Wed Jul 27, 2005 3:21 pm
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