Re: [fpc-pascal] DirectX applications crash

2009-03-16 Thread dmitry boyarintsev
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

[fpc-pascal] DirectX applications crash

2009-03-16 Thread Felipe Monteiro de Carvalho
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