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

2020-03-25 Thread Igor Osmolovskiy
Thanks Peter for your help Coming back to the initial question whether a DP could be initialized without a new session - looks like it is not possible. When we compile and catalog a JBC routine then a dll will be placed into bin. And when that JBC routine is called then it is actually called as

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

2020-03-25 Thread Peter Falson
Not following. If your starting point is jsh or LOGTO or a jBASE program you should be able to call a python routine and convert the dp to a pylong and pass it down for reuse. Sent from my iPhone > On Mar 25, 2020, at 7:14 AM, Igor Osmolovskiy wrote: > >  > Thanks Peter for your help > > Co

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

2020-03-25 Thread Igor Osmolovskiy
Right. If a jBASE routine is the starting point - no new session is created. But if python is the starting point then looks like we cannot avoid an additional session среда, 25 марта 2020 г., 14:25:33 UTC пользователь pfalson написал: > Not following. If your starting point is jsh or LOGTO or a

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

2020-03-25 Thread Peter Falson
Still not entirely sure why though. If python is the starting point and you get a dp from jbase_getdpEX (you cant avoid at least one session) you could pass the dp down the chain. Sent from my iPhone > On Mar 25, 2020, at 10:15 AM, Igor Osmolovskiy wrote: > >  > Right. If a jBASE routine is