Concurrency Problems
Posted: 15 Jul 2015, 10:54
Hi,
I'm trying to connect two eyetribes to the same program I'm building. I have found that it fails for memory violations when this line: "if (gaze_data.state & gtl::GazeData::GD_STATE_TRACKING_GAZE)" is executed. What I can see is that GazeData contains single structures that in case of creating two instances of the GazeListener class will be used/accessed for those two instances, causing the system to fail. Please correct me if I'm wrong here, but so far the only solution I can see is to create another class that stores this information allocating this memory separately for each instance of a GazeListener, but this is a mayor change in the sdk.
I was wondering if you have some help here, any other solution or even some example or guidance. I would be very thankful with any help.
I'm trying to connect two eyetribes to the same program I'm building. I have found that it fails for memory violations when this line: "if (gaze_data.state & gtl::GazeData::GD_STATE_TRACKING_GAZE)" is executed. What I can see is that GazeData contains single structures that in case of creating two instances of the GazeListener class will be used/accessed for those two instances, causing the system to fail. Please correct me if I'm wrong here, but so far the only solution I can see is to create another class that stores this information allocating this memory separately for each instance of a GazeListener, but this is a mayor change in the sdk.
I was wondering if you have some help here, any other solution or even some example or guidance. I would be very thankful with any help.