Jump to content
FPiette

Debug Output: Cannot get DirectX SharedMultithread object.

Recommended Posts

For any FMX application (Delphi 11.1), even a simple "hello world" type without writing any code, just a TLabel on a FMX form, when running it under the debugger, I get 4 times the message "Debug Output: Cannot get DirectX SharedMultithread object." in the events window. The application runs fine. Happens in both Win32 and Win64. No similar message when running under Ubuntu Linux.

 

Is this message expected?

 

Share this post


Link to post

Yes, it's okay. 
It means, the FMX.Canvas.D2D.TCanvasD2D.SharedMultithread is nil during loading and creating.
That happens a few cpu cycles later in TCanvasD2D.CreateSharedResources. 
Check TCanvasD2D.MultithreadEnter; and TCanvasD2D.MultithreadLeave; for yourself.

Share this post


Link to post
Quote

Check TCanvasD2D.MultithreadEnter; and TCanvasD2D.MultithreadLeave; for yourself.

I did it before posting of course. This doesn't mean it is expected behavior.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×