• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling Carbon Plugins From MachO App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling Carbon Plugins From MachO App


  • Subject: Re: Calling Carbon Plugins From MachO App
  • From: Jim Wintermyre <email@hidden>
  • Date: Thu, 8 Aug 2002 11:17:17 -0700

You need to add some glue to the CFM entry point myMainAddr before you can call it from Mach-O. In the Carbon SDK, check out the example "CFM_MachO_CFM". In particular, there's a function called MachOFunctionPointerForCFMFunctionPointer() which contains the glue you need.

Also be careful if you are passing callback functions to the CFM plugin. It won't be able to call routines in your MachO host without adding some glue (i.e. recompiling the plugin). If that's not an option, you may need to add an intermediate CFM shared lib that contains stub callbacks that the CFM plugins can use directly, and internally, it contains the glue to call the real callbacks that live in your MachO app.

Jim

I am using the Code Fragment Manager to call Carbon plug-in code from a
Mach-O application unsuccessfully. It works fine in 9.x and before but in
10.1 my Mach-O app crashes as soon as I call into myMainAddr.

Is there an easy way to get this to work?

Err = GetMemFragment(*myHandle, GetHandleSize(myHandle),
"\pPlugInFrag", kPrivateCFragCopy,
&myConnID,(Ptr*)&myMainAddr, myErrName);

Thanks,
Jeremy
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Calling Carbon Plugins From MachO App
      • From: Lubor Prikryl <email@hidden>
  • Prev by Date: Help me find it please
  • Next by Date: Re: Serial MIDI driver
  • Previous by thread: Help me find it please
  • Next by thread: Re: Calling Carbon Plugins From MachO App
  • Index(es):
    • Date
    • Thread