Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Large black regions obscure CNiGraph3D plots

I am trying to plot 3D mesh data in dynamically created CNiGraph3D objects within a modal Wizard window in an MDI application. The Wizard window is a CPropertyPage object within a CPropertySheet (in Wizard mode).

The meshes are being viewed in the XY plane only and there can be from 1 to 20 CNiGraph3D objects on the wizard page at any one time. Each graph object has the same dimensions although the graphs are resized if any are dynamically added or removed. Scroll bars are added to the wizard page if the number of viewable graphs exceeds the available space.

The problem occurs when scrolling is attempted. A large black region can appear over the whole width of a graph obscuring the mesh plot. When you attempt to intera
ct with the obscured graph an unhandled exception / access violation occurs and the application crashes. I have traced the crash in debug mode and it comes from OpenGL32.dll.

I have Visual Studio Service Pack 4 installed. Other Measurement Studio objects that I'm using work fine so I'd rather see if I can get help with my current configuration before updating (and changing) my system to SP6.

Any help with this would be appreciated.

Thanks,

David
0 Kudos
Message 1 of 2
(2,965 Views)
Dear David,

The same thing kind of happened in HiQ

This issue is likely related to your PC's video driver. The 3-D graph in HiQ 4.x for Windows leverages OpenGL, a 3D graphics standard that can rely either on your video hardware or software.

Try each of the following suggestions in turn in an effort to correct the problem.

1) Try turning up the hardware acceleration in device manager for the graphics card, then restart the machine and run the example again.

2) If you are running Windows 98 or Windows 95, try changing the Video acceleration feature to "None." To do this, go to the display settings page in your control panel and choose the Settings tab. Click the Advanced button, and on the next dialog, choose the Performance tab. Move the acceleration
tab to the far left.

3) Try switching to a standard VGA video driver. If the 3D graph works, the problem is likely a bug in your video card driver; make sure that you have the latest driver for your video card.

4) Try switching color depth or display resolution. If the 3D graph works, the problem is likely a bug in your video card driver; make sure that you have the latest driver for your video card.

Kind Regards

LouisP
Applications Engineer
NI-UK
0 Kudos
Message 2 of 2
(2,965 Views)