> func = dlsym(dlhandle,"ladspa_descriptor"); > if (func == NULL) { > /* check if we really got an error */ > error = dlerror(); /* save because next call to dlerror() returns NULL */ > if (error != NULL) { > /* my error code deleted */ > } > /* else the NULL is a valid function address */ > } this code is wrong. it should be: func = dlsym(dlhandle,"ladspa_descriptor"); if ((error = dlerror()) == NULL) { ... handle error ... } ... func points to a valid symbol ... func is allowed to be zero. its a pointer to a symbol, not necessarily a function. --p
- [linux-audio-dev] LADSPA Update, New Project (CMT) &... Richard W.E. Furse
- Re: [linux-audio-dev] LADSPA Update, New Project (... Benno Senoner
- Re: [linux-audio-dev] LADSPA Update, New Proje... David Benson
- Re: [linux-audio-dev] LADSPA Update, New P... Kai Vehmanen
- Re: [linux-audio-dev] LADSPA Update, N... David Benson
- Re: [linux-audio-dev] LADSPA Update, New Project (... Paul Barton-Davis
- Re: [linux-audio-dev] LADSPA Update, New Project (... Juhana Sadeharju
- Re: [linux-audio-dev] LADSPA Update, New Proje... David Benson
- [linux-audio-dev] Snd using newly released... Karl W. MacMillan
- Re: [linux-audio-dev] Snd using newly ... Benno Senoner
- Re: [linux-audio-dev] LADSPA Update, New Proje... Paul Barton-Davis
- Re: [linux-audio-dev] LADSPA Update, New Project (... Kai Vehmanen
- Re: [linux-audio-dev] LADSPA Update, New Proje... Kai Vehmanen
- RE: [linux-audio-dev] LADSPA Update, New Project (... Richard W.E. Furse
- Re: [linux-audio-dev] LADSPA Update, New Proje... Juhana Sadeharju
- Re: [linux-audio-dev] LADSPA Update, New P... David Benson
- Re: [linux-audio-dev] LADSPA Update, N... Juhana Sadeharju
- Re: [linux-audio-dev] LADSPA Update, New P... Juhana Sadeharju
- Re: [linux-audio-dev] LADSPA Update, N... Benno Senoner
- Re: [linux-audio-dev] LADSPA Upda... Juhana Sadeharju