Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any ideas on why Open() would fail?
03-29-2013, 07:50 PM
Post: #1
Any ideas on why Open() would fail?
Have a strange situation with a Windows XP computer. Borland C++ Builder 5, not sure which Video Lab version, the one that works with Builder 5.

VLDSCapture1->Open(); is failing but just in one piece of the code. The code is below, taken almost direct from the Advanced Video Capture sample.. One problem is the computer it's failing on is in Australia and I am in Oklahoma.

Have almost the same code in another part of the same app that is working when called. Running Advanced Video Capture also works and it all works fine on 3 computers I have tested it on here. Out of a dozen or so installations this is the only computer we have ran into that it fails on.

Could it be something weird in DirectX or maybe the video driver on that computer. Going to have her reinstall DirectX 9 but don't have much hope.

Help..............

VDComboBox->Items->Clear();
VLDSCapture1->VideoCaptureDevice->GetDeviceList(VDComboBox->Items);
if(VDComboBox->Items->Count > 0){
VDComboBox->ItemIndex = GrabForm->VidDeviceIndex;
VLDSCapture1->VideoCaptureDevice->DeviceName = VDComboBox->Text;
VLDSCapture1->Open(); // Tests show this is failing
VDSourceListBox->Clear();
if (VLDSCapture1->VideoSources->Count > 0) {
for( int i = 0; i < VLDSCapture1->VideoSources->Count; i ++ ) { // Populate ListBox
VDSourceListBox->Items->AddObject(VLDSCapture1->VideoSources->Items[i]->Name,
(TObject *)VLDSCapture1->VideoSources->Items[i]->Enabled);
}
VDSourceListBox->ItemIndex = GrabForm->VidSourceIndex;
VDSourceListBox->Checked[VDSourceListBox->ItemIndex] = true;
VLDSCapture1->VideoSources->Items[VDSourceListBox->ItemIndex]->Enabled = true;
VLDSCapture1->Start();
CaptureStoped = false;
}
}
else {
VDComboBox->Items->Add("No Video Device Found");
VDComboBox->ItemIndex = 0;
}
Quote this message in a reply
Post Reply 


Messages In This Thread
Any ideas on why Open() would fail? - BReeves - 03-29-2013 07:50 PM
RE: Any ideas on why Open() would fail? - BReeves - 03-29-2013, 10:05 PM
RE: Any ideas on why Open() would fail? - Dave - 03-30-2013, 01:19 AM
RE: Any ideas on why Open() would fail? - BReeves - 04-02-2013, 12:28 AM
RE: Any ideas on why Open() would fail? - Dave - 04-02-2013, 09:19 AM
RE: Any ideas on why Open() would fail? - Dave - 04-02-2013, 11:12 AM
RE: Any ideas on why Open() would fail? - BReeves - 04-03-2013, 06:43 AM
RE: Any ideas on why Open() would fail? - Dave - 04-03-2013, 07:43 AM
RE: Any ideas on why Open() would fail? - BReeves - 04-04-2013, 01:11 AM
RE: Any ideas on why Open() would fail? - Dave - 04-04-2013, 04:35 AM
RE: Any ideas on why Open() would fail? - BReeves - 09-04-2013, 09:15 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)