Re: [Mingw-w64-public] crashs using DComposition interfaces

2020-10-13 Thread Nikolay Sivov
On 10/13/20 5:46 PM, Pierre Lamot wrote: >>> While I have no clear idea about the cause of the issue, my gut >>> feeling is that it happens with overloaded functions. In above case: >>> >>>     STDMETHOD(SetOffsetX)(THIS_ float) PURE; >>>     STDMETHOD(SetOffsetX)(THIS_ IDCompositionAnimation*)

Re: [Mingw-w64-public] crashs using DComposition interfaces

2020-10-13 Thread Pierre Lamot
While I have no clear idea about the cause of the issue, my gut feeling is that it happens with overloaded functions. In above case:     STDMETHOD(SetOffsetX)(THIS_ float) PURE;     STDMETHOD(SetOffsetX)(THIS_ IDCompositionAnimation*) PURE; That's right, overloads like that appear in reversed

Re: [Mingw-w64-public] crashs using DComposition interfaces

2020-10-13 Thread Nikolay Sivov
On 10/13/20 3:40 PM, Pierre Lamot wrote: > Hello > > I'm trying to write a program that uses the DirectComposition API on > windows. While most of the API works correctly, some functions crash > when compiled with clang/gcc mingw64 and works when compiled with MSVC. > > basically the following