Jump to content

Recommended Posts

Posted

Ran into a nice quirk of Dynamic Library programming today.

I had Gizmo's project set to automatically output to a file called "mac.xpl"

I had a second plugin project, also set to automatically output to a file called "mac.xpl"

These filenames were setup using Xcodes "product name" fields in the build config.

When X-Plane would load the 2nd plugin project, the Operating System would re-load Gizmo!

Reason: The dylib is stamped with an internal name... the OS reads it, and for some insane reason, thinks they're the same binary.

(Gizmo is about 4.5 meg, the 2nd project file was only 54kb...)

Conclusion: Renaming your file from "Gizmo_mac.xpl" -> "mac.xpl" and THEN moving it into the X-Plane folders is a LOT safer and plays better with other dylibs.

File under "G" for Glad I never have to think about this cause I use Gizmo scripting instead. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...