WladiD / AnyiQuack

Animation framework for Delphi
62 stars 19 forks source link

TNotificationWindow won't work in a DLL (ActiveX Office add-in)? #10

Closed edwinyzh closed 4 years ago

edwinyzh commented 4 years ago

Hello,

I'm not sure why, but once TNotificationWindow is used in a DLL( an Office ActiveX add-in), it'll cause the host program (winword.exe for example) won't close, hang in the memory in the Task Manager.

Everything's ok with an VCL EXE. Do you have any hint for me? I tried commenting out the UseThreadTimer compiler directive but no change.

PS, I'm still using this commit before your big changes for FMX.

WladiD commented 4 years ago

Hi,

I can't reproduce it, but maybe the finalization section will not be called in a ActiveX add-in, so you must call the class method TAQ.Finalize on exit manually. TAQ.Finalize is private so you have to make it public first.

edwinyzh commented 4 years ago

@WladiD,

Great! That solved the problem! Would you make the following changes to AnyiQuack?



Thanks!
WladiD commented 4 years ago

The changes are now applied.

Thanks for your response!