You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a window A which open a new window B. Window B display and correctly work using DrawingSurface. When I try to close window B, from window A or directly from the close button of window B, I get an error.
Error occur in DrawingSurface method EndD3D() because the _deviceContext is null.
Sample here:
I cant provide the whole code but this sample perfectly repoduce the problem. Run the application, click on open button then close the secondary window. VorticeTest.zip
ps thanks for your work
The text was updated successfully, but these errors were encountered:
I suggest you create an unattached context you render to and bitmap copy across to each window. Rather than directly linking to the window directly in dx. That was the approach I have used on MDI
C#, .Net8.0, WPF application.
I have a window A which open a new window B. Window B display and correctly work using DrawingSurface. When I try to close window B, from window A or directly from the close button of window B, I get an error.
Error occur in DrawingSurface method EndD3D() because the _deviceContext is null.
Sample here:
I cant provide the whole code but this sample perfectly repoduce the problem. Run the application, click on open button then close the secondary window.
VorticeTest.zip
ps thanks for your work
The text was updated successfully, but these errors were encountered: