On Wed, Sep 6, 2017 at 10:17 PM, Ryan Joseph <r...@thealchemistguild.com> wrote:
>
>> On Sep 6, 2017, at 10:20 PM, Sven Barth via fpc-pascal 
>> <fpc-pascal@lists.freepascal.org> wrote:
>>
>> You're missing that FHook was declared as IHook, not THook.
>>
>
> In terms of memory why does it matter how it was declared? The memory was 
> allocated in Create() so the declaration is just relevant for the assignment 
> of the new memory. Is FPC doing something magic behind the scenes?
>

Because COM interface variables are automatically released.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to