BReeves
03-29-2013, 07:50 PM
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;
}
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;
}