Hi guys. I'm in the process of converting my application to work in Vista (argh!)
I'm having a problem with this part.. (it works fine in XP):
foreach (Device device in deCrossbar.GetDevicesList())
{
if (device.FriendlyName == "Dazzle DVC170 CrossBar")
{
DazCrossBarFilter = device.BindFilter();
// Thread oThread = new Thread(new ThreadStart(aicp.AI_Crossbar));
// oThread.Start();
DazCrossBarFilter.ShowPropPage(parentform.Handle, "Xtek 1");
if (DazCrossBarFilter != null)
{
foreach (Device device2 in deCapture.GetDevicesList())
{
if (device2.FriendlyName == "Dazzle DVC170")//WinTV USB2 VideoDazzle DVC170
{
DazUSBFilter = device2.BindFilter();
// Thread oThread2 = new Thread(new ThreadStart(aicp.AI_Cap));
// oThread2.Start();
DazUSBFilter.ShowPropPage(parentform.Handle, "Xtek 2");
The error occurs on the last line (ShowPropPage). The earlier ShowPropPage (for the crossbar) works fine, and the page appears as normal.
The exception it throws is:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at OleCreatePropertyFrame(HWND__* , UInt32 , UInt32 , UInt16* , UInt32 , IUnknown** , UInt32 , _GUID* , UInt32 , UInt32 , Void* )
at Elecard.Utilities.Filter.ShowPropPage(IntPtr hwnd, String szTitle)
at XDBGui.CaptureClassPinnacleDVC170_MPEG2.CreateFilters() in D:\Visual Studio 2005\Projects\XDBGui_v\XDBGui\VideoClasses\CaptureClassPinnacleDVC170_MPEG2.cs:line 86
I should add that the drivers are Vista certified and the prop page appears with no problems in graphedit.
I'm running consts.dll Assembley version 1.1.50725.0 (am I eligable for any updates that may fix the problem?)
Thanks for any help!