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
 LoadImage issue with IEvolution
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

cbc70037

USA
8 Posts

Posted - Jun 27 2021 :  16:42:23  Show Profile  Reply
I am still having some trouble with the stream version of IEImage.LoadImage. Oddly, I'm seeing the app simply self-terminate if it employs LoadImage with streams. I've created a zipped project to demonstrate the issue. It seems the forum does not like my zip. It can be downloaded from:

http://www.bitworks2000.com/temp/Testbug.zip

Within that zip there is a Word document explaining a few points. Thanks.

-C

xequte

39053 Posts

Posted - Jun 28 2021 :  01:28:32  Show Profile  Reply
Hi

Is this in the latest version, v10.0.0?


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

cbc70037

USA
8 Posts

Posted - Jun 28 2021 :  01:46:35  Show Profile  Reply
Yes. In fact, the Assemblies subfolder in the project has the referenced IEvolution modules. Thanks.

-C


-C
Go to Top of Page

xequte

39053 Posts

Posted - Jun 29 2021 :  05:23:34  Show Profile  Reply
Hi

In the demo, the IEImage object created in LoadThumbnails is not disposed. It is necessary when creating IEImage objects:

        public void LoadThumbnails(string[] files)
        {
            this.files = files;

            iem.ImageList.Clear();
            foreach (string file in this.files)
            {
                byte[] fileContent = File.ReadAllBytes(file);
                var ms = new MemoryStream(fileContent);
                IEImage image = new IEImage();
                image.LoadImage(ms, IEFileFormats.JPEG);
                iem.ImageList.AppendImage(image);
                image.Dispose();                                     // <<<<< add this
                ms.Dispose();
            }



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

cbc70037

USA
8 Posts

Posted - Jul 01 2021 :  00:46:11  Show Profile  Reply
That addressed it -- working quite well now. Thanks very much for that input. Even though the constructor mentions this, I incorrectly assumed that in the case of appending to IEMulti, one should not deallocate it. All good. Thanks.


-C
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: