Jump to content
Sign in to follow this  
Luke

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).

Cheers!


Luke Kolin

I make simFDR, the most advanced flight data recorder for FSX, Prepar3D and X-Plane.

Share this post


Link to post
Share on other sites

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...