Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The application starts up and looks fine. Open a couple modal windows and they look as they should. The screen opens normally (not maximized or minimized) and fills up the screen. There is a label that stretches across the top of the screen and a gradient background that goes from a very dark gray to a very light gray. If I maximize or minimize the application, the background of the form becomes very choppy. It is no longer a smooth gradient. It looks similar to a screen that doesn't have the color depth to show all the colors. The label at the top has thick line going through it the same color as its background color. The modal windows are completely black on the top half. Plus the application will not close properly. I have to use Task Manager to close it.

Any ideas what could be wrong?

Gory details:
There's another application of ours on the system that uses OpenGL to show 3D models and animations. When the WPF application was installed on the computer, the animations quit working. The static 3D model would still show up, but there would be a blank screen when the animations were being shown. We didn't have the problem with WPF application at this point.

It's important that the animations show because it validates what the operator is telling the machine what to do. We loaded new graphics drivers and the animations worked again. However, it created the problem mentioned above.

Is there some incompatibility between WPF and OpenGL? I don't get why it's one or the other.

Three points that don't make sense to me are:
Point 1: The sequence of events
1) OpenGL static image works, OpenGL animation works.
2) Install .NET and application. WPF works, OpenGL static image works, OpenGL animation broken.
3) Install graphics driver: WPF broken (only after resizing main window), OpenGL static image works, OpenGL animation works.

Point 2: Why it will show the OpenGL static images, but not the animation. I don't think the commands to draw the image are any different between the two. Maybe it has to do with swapping the buffers?

Point 3: Why WPF will display fine until you resize the main window.

Thank you for any help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900