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
 TImageEnMView.OnDestroyImage.

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
wesleybobato Posted - Jul 25 2014 : 13:03:32
Hello Nigel.

Another Error found in TImageEnMView.OnDestroyImage.
you are calling the method OnDestroyImage After Destroying the Object

Please check this example

You can fix this error

https://www.dropbox.com/s/ah3becgsg5rw3sg/CustomThumbs2.zip
4   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Jul 26 2014 : 15:52:37
Thank you Nigel.
xequte Posted - Jul 26 2014 : 15:51:00
Hi Wesley

That issue is outside of ImageEn.

Change your ImageEnMView1DestroyIMage event to:
if assigned(m_checkboxes) then
  m_checkboxes.Delete(idx);


And your FormDestroy event to:
FreeAndNil(m_checkboxes);




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Jul 26 2014 : 10:00:29
Hi Nigel.

you noticed an error with m_checkboxes.Free ();
because this object is first destroyed and then the Events OnDestroyImage are Called.

Runs and Closes This App will occur an Access Violation

Nigel I sent an email from the heart to help him in his advances
xequte Posted - Jul 26 2014 : 09:46:33
Hi Wesley

That is not the case. OnDestroyImage is called immediately before freeing the object.



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