How to reproduce:
private void RadForm1_Load(object sender, EventArgs e)
{
this.radWebCam1.TakeSnapshot();
}
Workaround:
public class CustomWebCam : RadWebCam
{
public override void TakeSnapshot()
{
FieldInfo fi = typeof(RadWebCam).GetField("player", BindingFlags.NonPublic | BindingFlags.Instance);
object value = fi.GetValue(this);
if (value == null)
{
return;
}
PropertyInfo propertyInfo = value.GetType().GetProperty("EvrVideoDisplay", BindingFlags.NonPublic | BindingFlags.Instance);
value = propertyInfo.GetValue(value, null);
if (value == null)
{
return;
}
base.TakeSnapshot();
}
}