Thanks GizmoQ. The Error will be shown, if the default values from the config.ini won't match with your camera (device id 0, resolution, framerate etc..)
these are the default values if you delete the config.ini: (last parameter...)
("CaptureDeviceConfig","VideoInputDevice", 0);
("CaptureDeviceConfig","VideoCompressor", 2);
("CaptureDeviceConfig","FrameRate", 30);
("CaptureDeviceConfig","FrameSizeWidth", 320);
("CaptureDeviceConfig","FrameSizeHeight", 240);
("AudioDeviceConfig","AudioInputDevice", -1);
("AudioDeviceConfig","AudioCompressor", 0);
("AudioDeviceConfig","AudioSamplingRate", 44100);
("AudioDeviceConfig","AudioSampleSize", 16);
("AudioDeviceConfig","AudioChannels", 1);
("MiscConfing","SaveToDrive ", "C:");
("MiscConfing","SaveToPath", "\\");
("MiscConfing","VideoFileName", "CarPC");
("MiscConfing","AutostartCapture", 0);
("MiscConfing","StopAfterMB", 0);
("MiscConfing","StartOver", 0);
("MiscConfing","WindowStateOnLoad", "normal");
New Version:
Capture!.zip
Added Try-Catch to display errors while starting up. Now the app will not close itself if something goes wrong while trying to setup the camera. So you can try switching the device and save the config.
Chris