ScreenshotWindowMBS gives black result

I’m thinking about automating making screenshots of my app. I tried the example “Window screenshot”. The result is a nice black square.

Xojo 2019r2 on Catalina 15.1., latest beta of MBS plugins.

Bug?

Seems like this code is broken for 64-bit.

You may prefer to use CreateWindowListImage method in CGWindowMBS class.

Yup, that works better. Thanks.