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
 Params UserData Problöem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 18 2020 :  13:54:23  Show Profile  Reply
Hello,
I use the parameters ImageEnView.CurrentLayer.UserData and ImageEnView1.CurrentLayer.UserDataLen. Both works fine.
Now I want to transfer the LayerX to another LayerY, but with the parameters UserData.
I do it like this:
ImageEnVectX.CurrentLayer.Assign(ImageEnViewY.CurrentLayer);
But unfortunately the UserData parameters are not transferred.
ImageEnviewY has the Params UserData but ImageEnVectX has not the params.
What do I have to do ?

Klaus
www.klausdoege.de

xequte

38615 Posts

Posted - Aug 19 2020 :  18:11:38  Show Profile  Reply
Hi Klaus

Because we don't know what UserData contains we cannot safely assign it. It may be an allocated buffer or object, so transferring/copying it could cause memory leaks or invalid deallocations.


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

klausdoege

Germany
389 Posts

Posted - Aug 21 2020 :  08:20:42  Show Profile  Reply
Hello Nigel,
OK, then I have to write my own routine that copies the data.

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: