From: C. Skluzacek (csklu_pf++at++yahoo.com)
Date: 06/17/2003 03:53:58
--- Marc Mendez <mmendez++at++silicon-worlds.fr> wrote:
> C. Skluzacek wrote:
>
> >Hi,
> >I have a program that loads in plugin modules at
> >runtime using the libdl family of functions (I've
> also
> >tried using the gnu libtool library and got the
> same
> >result). I get a crash when I try to dynamically
> load
> >a plugin which itself depends on Performer.
> >
> What kind of crash exactly ? Is this dlopen, dlsym
> or the (*runPf)()
> call that crashes ? That is, are your handles and
> pointers OK ?
I get a segmentation fault as soon as I try to call a
performer function (either directly or via the
function pointer). For example, if I comment out the
performer code in the runPf() function (as below), it
runs fine (of course no Performer code is then
executed). So that means that the library handle and
function pointer seem to be valid. I'm just wondering
if Performer does some special initialization that has
to be done at program startup or something instead of
dynamically during runtime.
void runPf()
{
std::cout<<"runPf()\n";
#if 0
pfInit();
pfConfig()
for ( ; ; ) {
pfSync();
pfFrame();
}
#endif
}
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
This archive was generated by hypermail 2b29 : Tue Jun 17 2003 - 03:55:19 PDT