lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

you're right although perhaps the apple people working on CoreMidi
didn't get the memo.  When I made a lua module with CoreMidi dlopen
caused crashes when the module was reloaded, but NSLoadModule didn't.

On Wed, Mar 4, 2009 at 2:04 PM, Sam Roberts <> wrote:
> On Wed, Mar 4, 2009 at 1:23 PM, Wesley Smith <> wrote:
>> Actually dlopen is not ideal on OSX.  It wreaks havoc with
>> CoreAudio/CoreMidi type frameworks whereas NSLoadModule functions
>> behave appropriately.  From what I remember reading the tech docs,
>> they highly recommended NSLoadModule over dlopen and from my
>> experience this is sage advice.
> Apple's developer docs claim use of NSLoadModule is discouraged in
> preference to dlopen:
> Not that Apple's advice necessarily applies to every circumstance.
> Cheers,
> Sam