Elecard
May 19, 2013, 04:59:40 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Troubleshooting Exceptions: System.AccessViolationException  (Read 4554 times)
rkearsley
Newbie
*
Posts: 5


View Profile
« on: May 14, 2008, 09:38:48 pm »

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):

Code:
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:

Quote
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!
Logged
Polyakov
Newbie
*
Posts: 77


View Profile WWW
« Reply #1 on: June 07, 2008, 12:29:28 am »

Hi rkearsley,

let me ask you why did you think that the problem concern Elecard components?

Regards,
Alexey
Logged

Regards,
Alexey Polyakov
http://www.elecard.com
rkearsley
Newbie
*
Posts: 5


View Profile
« Reply #2 on: June 18, 2008, 11:39:30 pm »

because the property page is able to be opened in graphedit (in vista) with no problems, only when it comes to being opened by the elecard ShowPropPage method does it not work.

Are you able to offer any advice to say wether if I upgraded my elecard sdk version, would it work?

And since elecard sdk is the thing I paid a lot of money for, and it's the only variable factor (I can't change vista or the pinnacle drivers!), so wether or not the problem is with those is irrelevant, I just need to know if I upgrade to a later version (i.e. pay you more money... you like money, don't you?) would it work?
« Last Edit: June 18, 2008, 11:44:05 pm by rkearsley » Logged
IrinaM
Moderator
*****
Posts: 138


View Profile
« Reply #3 on: August 14, 2008, 10:05:49 pm »

Hi rkearsley,

Elecard .NET Application SDK is no longer developed or supported. Instead of this product we are glad to offer Elecard Codec .NET SDK G4,
which is based on Codecs 4th Generation (concerning the update questions please feel free to contact our Sale Dept. sales(at)elecard.net.ru).
Please install the evaluation version of  Codec .NET SDK G4 1.1 -
http://www.elecard.com/products/products-pc/sdk/codec-.net-sdk/ - this may be enough to solve the problem you have faced.

Please note that some changed were made in ShowPropPage() function.

If the issue still repeats with the new SDK, then please give us a short note (tsup(at)elecard.net.ru) and some additional information
on the problem, i.e. filters that are used in your source code provided above, in order for us to repeat this issue
on our side.

Thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!