Results 1 to 11 of 11

Thread: Error when using firewire camera(DV)

  1. #1
    Join Date
    Mar 2005
    Posts
    9

    Error when using firewire camera(DV)

    Hi, I use visual c++ 2003 wizard to make a simple dialog application. Everything works ok, I can get the device dialog and select camera and size if I am only use a usb web camera. However, the program give me an exception once I insert the firewire dv camera. If I use examples came with the program or I make a MFC document program, then everthing works fine. It gives me an exception only if I use dialog application. The attachment is the exception dialog. Anyone know do I need to set any additional settings for dialog application?

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello,

    This is strange. If your program works with a USB camera and not with a DV camera, then there must be a problem in the driver or in some DirectShow filters. I suggest to try different video format (YUV or RGB) and test whether the error occurs any longer.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Mar 2005
    Posts
    9

    Thanks for your reply

    The problem is, if I coonect firewire camera. This error box is display before the device configuration box is display. But the example program and document program don't have these kink of problems. Only, self-build dialog program has this problem

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello.

    Yo may send your project as zipped file to supprt@imagingcontrol.com, so i could have a look on it.
    Best regards
    Stefan
    IC Imaging Control Support

  5. #5
    Join Date
    Mar 2005
    Posts
    9

    Thanks

    I just sent my files to supprt@imagingcontrol.com, but my email is denied. I don't know why. Anyway, The following is the link of my files, wish you can have a look. Thank you.
    http://www.ece.concordia.ca/~z_baoshe/test.zip

  6. #6
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello,

    The correct email address is support@imagingcontrol.com. I skipped the "o" after the "pp". Sorry. Anyway, i donwloaded your file from the given link.
    Best regards
    Stefan
    IC Imaging Control Support

  7. #7
    Join Date
    Mar 2005
    Posts
    9
    Hi, stefan, did you find the problem when you are using my code?
    Thank you.

  8. #8
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Ted,

    sorry, i downloaded it, had a look on it and then got a work overload from other side. So i forgot you completely. I try to have a look on it today.
    Best regards
    Stefan
    IC Imaging Control Support

  9. #9
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello Ted,

    In your CtestDlg::OnBnClickedButton1() you declared a variable DShowLib::Grabber m_pGrabber;
    This opens the grabber and should display the live video. If the OnBnClickedButton1() is ended, the grabber is deleted and no live video is shown. Just move the line DShowLib::Grabber m_pGrabber; into your class declaration and your application works fine.
    I also suggest to rename the static ID "IDC_STATIC" into "IDC_STATIC_VIDEO".
    Best regards
    Stefan
    IC Imaging Control Support

  10. #10
    Join Date
    Mar 2005
    Posts
    9

    Thanks.

    I put "DShowLib::Grabber m_pGrabber;"after
    class CtestDlg : public CDialog
    {
    // Construction
    public:
    DShowLib::Grabber m_pGrabber;
    .......
    }

    However, I still have the same problem. I gives me an exception only if I plug in the firewire camera. The code is working on your computer? even you plug in a firwire camera?

  11. #11
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Ted,

    and you removed it from the OnBnClickedButton1() function?
    Yes, it runs fine on my computer.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. How to split firewire video?
    By Jannie in forum IC Imaging Control .NET
    Replies: 0
    Last Post: January 20, 2006, 17:47:32
  2. Swithing Devices Connected to the Firewire Port
    By Kay in forum IC Imaging Control C++ Class Library
    Replies: 5
    Last Post: April 22, 2004, 07:37:39
  3. Migration to firewire camera
    By DAS in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: September 18, 2003, 13:36:37
  4. Max number of firewire cameras?
    By bstichbury in forum IC Imaging Control C++ Class Library
    Replies: 3
    Last Post: July 14, 2003, 16:18:55
  5. AVI to DV DEVICE via FIREWIRE 1394
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: January 27, 2003, 07:58:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •