This is a migrated thread and some comments may be shown as answers.

Exception on myRadWebCam.TakeSnapShot()

0 Answers 67 Views
WebCam
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Luca asked on 11 Jun 2020, 05:11 PM

Hallo, I'm using RadWebCam control into a UserControl and everything works as expected.

So, if I call myradwebcam.TakeSnapShot() within the UserControl that contains the RadWebCam control, everything is ok.

But if I call myradwebcam.TakeSnapShot() from another class (i.e. another UserControl) I receive a System.NullReferenceException.

Am I doing something wrong?

 

Thank's,

Luca

P.S. Here the exception:

 

System.NullReferenceException
  HResult=0x80004003
  Messaggio=Riferimento a un oggetto non impostato su un'istanza di oggetto.
  Origine=Telerik.Windows.Controls.Media
  Analisi dello stack:
   in Telerik.Windows.Controls.RadWebCam.TakeSnapshot()
   in TestVisoreIfm.Pannello_Dashboard.btnScansione_Click(Object sender, RoutedEventArgs e) in D:\repos\TestVisoreIfm\Pannello_Dashboard.xaml.cs: riga 517

No answers yet. Maybe you can help?

Tags
WebCam
Asked by
Luca
Top achievements
Rank 1
Share this question
or