in reply to Re^6: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
in thread Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
But passing the context around is done as an optimization in order to avoid calling Perl_get_context() repeatly. And it is not required unless the macro PERL_NO_GET_CONTEXT is defined. So, you are probably doing something on the wrong way.
The first thing that chokes me is that if you start from the Perl side, you shouldn't be calling perl_alloc at all.
Try remove any interpreter setup from your code, and calling some Perl function from the C side. It should just work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
by itamarat (Acolyte) on Jul 08, 2014 at 13:52 UTC | |
by salva (Canon) on Jul 08, 2014 at 14:27 UTC | |
by itamarat (Acolyte) on Jul 08, 2014 at 14:46 UTC | |
by salva (Canon) on Jul 08, 2014 at 15:18 UTC | |
by itamarat (Acolyte) on Jul 09, 2014 at 08:18 UTC | |
|