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
 Memory Leak in TImageEnVect

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
Siluro Posted - Jun 11 2015 : 02:53:22
Hi,

I'm using TImageEnVect for a WYSIWYG page designer. For each object on the page I insert a bitmap object. For the data that I need for each object, I've created a custom class TUserData. Each bitmap object (ObjUserData) therefore has an instance of TUserData. When I remove an object from the canvas, I free the instance of TUserData.

So far everything works great but when I run proc.undo, I have an instance of TUserData in memory for each affected bitmap object and don't know how to free.

Maybe I'm just too blind to find the solution. Would be grateful for any help.

Best regards

Björn
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 15 2015 : 00:34:32
Hi Bjorn

If ObjUserData and ObjUserDataLength have been set then the memory of ObjUserData should be cleared automatically when the object is destroyed. You should not need to be freeing the memory yourself.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com