Hallo. my name is Robert. Sorry for my english.
I want buy your library in light version, now i tested it with my application and i have problem (
My code:
Hello Klaus2...
Of course I was make a mistake with bracket in example. I write from memory, don't copy from Delphi IDE.
My code compiling without errors.
The problem is still actual.
I have problem with gflBitmapHasEXIF(gfl_bmp) to.
I'm sure that jpeg has EXIF because I read it in other
application i.e. XnView.
In my application gflBitmapHasEXIF always return 0.
Hello Robert,
don't know, because i don't know your exact code.
The only i can say that the snippet attached works fine
with D4/W9x and D6PE/W2K (i don't have D7).
Maybe your PAnsiChar is the wrong cast.
Best Regards,
klaus2
I can confirm with D4/Win98 i get an AV too after having reordered the var defs in the described way,
I can only imagine it's Delphi (although i never encountered such a prob with Delphi); maybe compiler directives?
After testing, with 2.40 this problem did not occur (however here i have to use gflGetDefaultLoadParams instead of gflGetDefaultThumbnailParams);
However, in a similar context, i remember having had an AV when applying a
e := gflGetFileInformation(PChar(filename), -1, finfo);
before the gflLoadThumbnail call (even if i different receiving variable (finfo2) is used).
Somehow strange, indeed, but its possible ot workaround.
acsrm wrote:Hello Klaus2...
Of course I was make a mistake with bracket in example. I write from memory, don't copy from Delphi IDE.
My code compiling without errors.
The problem is still actual.
I have problem with gflBitmapHasEXIF(gfl_bmp) to.
I'm sure that jpeg has EXIF because I read it in other
application i.e. XnView.
In my application gflBitmapHasEXIF always return 0.
type PGFL_FILE_INFORMATION = ^TGFL_FILE_INFORMATION;
TGFL_FILE_INFORMATION = record
...
function gflLoadThumbnail(const filename: PChar;
width, height: GFL_INT32;
var bitmap: PGFL_BITMAP;
var params: TGFL_LOAD_PARAMS;
var info: TGFL_FILE_INFORMATION): GFL_ERROR; stdcall;
I'm not quite sure about Delphi stuff, but shouldn't it pass P... types (i.e. the corresponding pointers) to gflLoadThumbnail? (this would surely be true for the other gfl* functions).
At least the C declarations use pointers...