11-06-2009 03:59 AM - edited 11-06-2009 04:02 AM
Hello,
Here is a problem I encountered, and the solution I stumbled on. I thought I'd share both in case others encounter it too:
On Windows XP, when acquiring and displaying a non-square image from a PCI-1424 via .NET WPF, I saw periodic glitches in the video image (white vertical lines). These glitches were simultaneous with large curved deflections in the FRAME_DONE timing signal, as viewed on an external oscilloscope. The glitch frequency appeared to be a function of frame rate and aspect-ratio.
This only occurred when calling ‘WritePixels()’ on a `WriteableBitmap` object, or ‘Invalidate’ on an `InteropBitmap` object, and only when the object was bound to an Image control. Video playback via GDI was problem free.
After many failed troubleshooting attempts, as a last-ditch effort I wiped the hard disk and installed Windows Vista. That fixed it.
Hardware:
Software:
I hope this helps someone. And if anyone has any idea what might have been the underlying cause, I'd be curious to hear it.
Best,
Gabriel
11-09-2009 09:54 AM
Hi Gabriel,
Is it possible for you to post some sample code for us to use to try to reproduce this behavior?
11-11-2009 09:57 AM
Hi Oliva,
Attached is a VS2008 solution. I removed some extraneous stuff and simplified it a bit, but it's essentially the same code as was generating the problem.
Hope this helps.
-Gabriel
11-12-2009 02:01 PM