My project is required to be cross-platform, so I am using the C++ API for ArcObjects. My application creates a new thread which listens to a network socket broadcasting location information. I am attempting to read in the information and add points to my DynamicLayer. My problem comes when I try to use a new IPoint in the second thread. I can make the call:
But on the next line when I execute:
The application fails with a nonspecific error 'aborted'.
Relavant information: I am creating a new thread by calling
pthread_create on a static method.
I have read the ESRI document on multithreading (which like the rest of the documentation is woefully absent of c++ specific information), but didn't see anything I thought could be the problem. Any thoughts?