ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 List „FileFormats“ not initialized
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Rebka

1 Posts

Posted - Mar 16 2016 :  05:27:02  Show Profile  Reply
Hello! I have the following problem:

When i try to call e.g. the function

ImageEnView1.IO.LoadFromFile(sFileName);

I get an Access Violation.

The reason for this is that the list „FileFormats“ is never initialized (Unit „iesettings“)

Unit iexBitmaps:

function IEFileFormatGetInfo2(Extension: string): TIEFileFormatInfo;
var
  q, i, c: integer;
begin
  Extension := LowerCase(Extension);
  if (Length(Extension) > 0) and (Extension[1] = '.') then
    Delete(Extension, 1, 1);

  for q := 0 to IEGlobalSettings().FileFormats.Count - 1 do  //Access Violation
  begin
    result := TIEFileFormatInfo(IEGlobalSettings().FileFormats[q]);
    c := IEFileFormatGetExtCount(result.FileType);
    for i := 0 to c - 1 do
      if LowerCase(IEFileFormatGetExt(result.FileType, i)) = Extension then
        exit;
  end;
  result := nil;
end;


I'm using Delphi 2007 and ImageEn 6.2.2

xequte

38684 Posts

Posted - Mar 16 2016 :  14:54:43  Show Profile  Reply
That should not be possible . FileFormats is created in the initialization of hyieutils.pas.

Is it possible that you have corrupted memory elsewhere in the application?

Does this occur even if you use one of the ImageEn demo projects?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: