Re: Game Technologies: Graphics Present() hangs for 10 seconds when mixing DirectX full screen and GDI
JeremyAtGosub
> Does this happen with the Managed DirectX SDK samples also
YES!!! Deader than a door nail - forever. It's very easy to
reproduce. Make a visual C# application, add a label1 and a
button1, then add the following code to the button click event:
private void button1_Click(object sender, EventArgs e)
{
int a = 0;
label1.Font = new Font("Arial", 24, FontStyle.Regular);
while (true)
{
a++;
label1.Text = "Hello: " + a;
Application.DoEvents();
}
}
Run the application, move the window over to the other monitor, and
then click button1. Now run the BasicHLSL (managed) DirectX
example from the Dec 2006 SDK. Switch to full screen, wait a few
seconds, and poof - dead.
-Jeremy