Re: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Peter Falson
Your only choices are start from jsh/jbc call python, call jbc etc or start with python call jbc. Either way the dp needs to be carried around. I can post an example of calling python (it needs jBASE 5). Sent from my iPhone > On Mar 9, 2020, at 10:36 AM, Igor Osmolovskiy wrote: > >  > Hel

Re: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Igor Osmolovskiy
Hello Dan Right, but is there a possibility to avoid creating a new thread? One option proposed by Peter is to launch Pyhton from JBC e.g. But any chance to achieve this for pure Pyhton? понедельник, 9 марта 2020 г., 15:27:22 UTC+1 пользователь DanE написал: > > That would be because the jsh ini

Re: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Igor Osmolovskiy
This approach works, i.e. if we use a JBC program to call a Python that would call a C written extension module then DP is just passed and no additional session is being created. But would be great not to use JBC as a starting point понедельник, 9 марта 2020 г., 14:51:40 UTC+1 пользователь pfals

RE: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Dan Ell
That would be because the jsh initiated the thread and the program running under it is a shared object /dll beneath that thread. Dan Ell | jBASE Technical Engineer jBASE International, Inc. 813-498-2544 | 866-582-8447 d...@jbase.com | www.jbase.com 1050 Calle Amanecer, Suite A | San Clemente, CA

Re: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Peter Falson
If you want to use python in this mix then I would think you need to call python from jBASE so you can persist the dp. Sent from my iPhone > On Mar 9, 2020, at 6:28 AM, Igor Osmolovskiy wrote: > >  > Thank you Peter > > But do you think it is still possible to retrieve a DP for an existing

Re: Getting the jBase DP (data pointer) of the current session when using pure C

2020-03-09 Thread Igor Osmolovskiy
Thank you Peter But do you think it is still possible to retrieve a DP for an existing session? It can be seen that no new session is created when a JBC program is being called in jshell e.g. Therefore a DP initialization is happening somehow for that case Thanks суббота, 7 марта 2020 г., 1:1