Hello,
if FPC interfaces are working the same that Delphi interfaces do, then
you should NEVER call ._Release() explicitly
This is (calling _Release()) done my the compiler implicitly:
* if variable is no longer available (exiting the function local
variable interfaces are released)
* if variable
Hello,
I've always had a problem with using COM with Free Pascal. If I
release the interfaces, then the application crashes without reason
somewhere unrelated with the code to do the actual release. In the
following example I used the DirectX units from clootie:
http://www.clootie.ru/fpc/index.ht