Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Caching XPLMFindDataRef

Featured Replies

  • Commercial Member

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.