the error message is very generic..
check null condition for all your objects before use.
like, it will give you an idea that which object is null.
if(nextFrame != null)
{
if(selectPictureBox1 != null)
{
selectPictureBox1.Image = nextFrame.ToBitmap();
}
}
if selectPictureBox1 object is null, check for that. if nextFrame object is null check for the solution regarding that, means your 'using (CVImage nextFrame = capture.QueryFrame())' is not working.
-> check camera connection, if possible click photos before using with your app for varification.
-> check for help in CVCapture API