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
 Access violation with TImageEnMView

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
AnKi Posted - Jun 15 2023 : 10:09:35
Hello,

I'm still using version 9.1.1 in Delphi 10.4 and noticed an AV with a TImageEnMView when a TImageEnView is attached to it while closing a form.
The error message: (sorry, German IDE)

---------------------------
Benachrichtigung über Debugger-Exception
---------------------------
Im Projekt Sample.exe ist eine Exception der Klasse EAccessViolation mit der Meldung 'Zugriffsverletzung bei Adresse 006A744C in Modul 'Sample.exe'. Lesen von Adresse 00000050' aufgetreten.
---------------------------
Anhalten Fortsetzen Hilfe
---------------------------

Debugging through the ImageEn source files shows a Timer component being created in "TIECustomMView.DelayedUpdateAttachedImageEnView();" every time an update is called onto the component overwriting the same member variable over and over without freeing it before. This causes some Timers to get stuck in an endless loop as they're only disabling the newly assigned Timer objects if one was created before the timer event kicked in.
I guess these Timer components then cause an AV when the form closes and the whole TImageEnMView component is freed.

I didn't find anything about this in the release notes, has this been fixed in some later version?
And is there any workaround for my current version?

Kind regards
Andreas
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 16 2023 : 04:04:50
Hi Andreas

Yes, as best as I recall, there was an issue there, that was fixed many versions ago (9.3.0, I think). I'm out of the office until late June so I cannot confirm a workaround, but you should be able to set AttachedImageEnView to nil in your form closing code to prevent it.

Nigel
Xequte Software
www.imageen.com