Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
9 Views

PXC3DScan only runs in windows thread

Hello,

For some reason the PXC3DScan scan object, runs successfully only inside a windows thread.

    // This does not work:
    //do_real_sense();

 

       //This does work:

    int data = 0;
    HANDLE h = CreateThread(0, 0, do_real_sense, NULL, 0, 0);
    HANDLE Array_Of_Thread_Handles[1];
    Array_Of_Thread_Handles[0] = h;
    WaitForMultipleObjects(1, Array_Of_Thread_Handles, TRUE, INFINITE);
    CloseHandle(h);
 

This has to be a windows thread, standard C++ threads don't work. In addition the scan quality in C++ is not as good as the C# code (identical pieces of code). Any one has an idea why?

Kind regards,

Elias.

0 Kudos
0 Replies