You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two camera and i want to start CAM1 and CAM2 with two threads
`Thread threadCam1 = new Thread(new ThreadStart(ConnectToCam1));
threadCam1.Start();
Thread threadCam2 = new Thread(new ThreadStart(ConnectToCam2));
threadCam2.Start();
private void ConnectToCam1()
{
try
{
// ConnectToCam2 is the same
`
but it fired exception Message = "Cross-thread operation not valid: Control 'liveCAM2' accessed from a thread other than the thread it was created on."
How to fix this problem?
Pls help me
Thanks you!
The text was updated successfully, but these errors were encountered:
I have two camera and i want to start CAM1 and CAM2 with two threads
`Thread threadCam1 = new Thread(new ThreadStart(ConnectToCam1));
threadCam1.Start();
Thread threadCam2 = new Thread(new ThreadStart(ConnectToCam2));
threadCam2.Start();
private void ConnectToCam1()
{
try
{
// ConnectToCam2 is the same
`
but it fired exception Message = "Cross-thread operation not valid:
Control 'liveCAM2' accessed from a thread other than the thread it was
created on."
I have two camera and i want to start CAM1 and CAM2 with two threads
`Thread threadCam1 = new Thread(new ThreadStart(ConnectToCam1));
threadCam1.Start();
Thread threadCam2 = new Thread(new ThreadStart(ConnectToCam2));
threadCam2.Start();
private void ConnectToCam1()
{
try
{
// ConnectToCam2 is the same
`
but it fired exception Message = "Cross-thread operation not valid: Control 'liveCAM2' accessed from a thread other than the thread it was created on."
How to fix this problem?
Pls help me
Thanks you!
The text was updated successfully, but these errors were encountered: