in reply to Working with multiple interpreters (my_perl is NULL when embed perl in C ; "dSP" segmentation faults)
Do I understand correctly that you creating new thread inside your library? If yes, then probably that's the source of the problem. When perl creates new thread it creates copy of interpreter, so every thread works with its own copy. After thread exits the memory is freed. If new thread is created in C library, the copy of the interpreter isn't created. I'm not too familiar with perl internals, but that's not good.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: my_perl is NULL when embed perl in C ; "dSP" segmentation faults
by perlmonk1729 (Acolyte) on Nov 04, 2009 at 04:15 UTC |