Forum: Object-Pascal / Delphi-Language
Delphi
by Zacherl,
29. Jan 2018
Yes, I can confirm this. The latest version works for me, but resizing still crashes the application.
Forum: Object-Pascal / Delphi-Language
Delphi
by Zacherl,
29. Jan 2018
It keeps crashing, if I comment out the MagSetWindowSource. Callstack points to `msvcrt.memcpi` so I guess there's something fishy somewhere else. Could be anything like wrong types, calling conventions, buffer overreads, ... Same problem might cause your black image. Buffer overreads/overflows can be tricky sometimes and do not always result in reproducable problems.
Forum: Object-Pascal / Delphi-Language
Delphi
by Zacherl,
28. Jan 2018
The (corrected) C++ example works on my Windows 10, but the Delphi code crashes somewhere inside MagSetWindowSource (breakpoint inside callback does not trigger) - again, only if I set the callback.
Forum: Object-Pascal / Delphi-Language
Delphi
by Zacherl,
27. Jan 2018
Hiding / minimizing a window to exclude it from a screenshot is an invasive operation and I as an user would not like it (even if it's only for a split second).
You should not declare your filterList as PHWNDArray. Just use a normal THWNDArray as variable declaration and pass it like this: MagSetWindowFilterList(hwndMag, MW_FILTERMODE_EXCLUDE, 1, @filterList). You could even use plain HWND...