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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 List „FileFormats“ not initialized

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Rebka Posted - Mar 16 2016 : 05:27:02
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 16 2016 : 14:54:43
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