Sign in to follow this  

Caching XPLMFindDataRef

Recommended Posts

I'm trying to write an XP plugin that reads DataRefs to interface with another application over a TCP connection. All is working well and I am trying to do the "right thing" by caching the pointers that XPLMFindDataRef gives me. I'm initializing an std::map<const char *, XPLMDataRef> when my plugin starts and I can apparently call size() on it, but each time I call find() or attempt an insert XP crashes on me.

This is probably more of a general C question (VC17) but is there something special about the XP implementation of C that I need to know about? I'm not a C programmer by trade (I do it once every few years and am reminded why I don't do it anymore).


Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this