Win 7, GFL SDK 340 and nef files

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

Moderators: XnTriq, helmut, xnview

Mike
Posts: 3
Joined: Mon Dec 26, 2011 6:03 am

Win 7, GFL SDK 340 and nef files

Post by Mike »

Hi,
I have a Delphi program to process nef files from nikon D40. It worked fine on win XP, GFL SDK 240. Now I am working under win 7, GFL SDK 340. Many formats are understood correctly, but I have crash "floating point operation" in the function gflLoadBitmap for nef. This can be easily reproduced on Delphi example from GFL SDK 340 and will not reproduced for GFL SDK 240(change dll only). Please, help me to understand why.

Also, I have a problem with the gflGetFileInformation() function In the same example for Delphi :
var
  info: TGFL_FILE_INFORMATION;
  ...
  e: = gflGetFileInformation (
      pchar (filename),
      -1, // Automatic
      info);

After using it the program's behavior is not predictable. However, if I make a change

var
  info: PGFL_FILE_INFORMATION;
  ...
  Getmem (info, sizeof (TGFL_FILE_INFORMATION) * 2);
  e: = gflGetFileInformation (
      pchar (filename),
      -1, // Automatic
      info^);
everything works well.

Thank you
Mike
Posts: 3
Joined: Mon Dec 26, 2011 6:03 am

Re: Win 7, GFL SDK 340 and nef files

Post by Mike »

Sorry, The first question is found here:
http://newsgroup.xnview.com/viewtopic.php?f=4&t=19758
It seems that Delphi does not like GflSDK :bugfixed: