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:13:48 UTC+1 пользователь pfalson написал:
>
> That creates a regular jBASE session dp. The null args are more for 
> internal use. 
>
> Sent from my iPhone 
>
> > On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy  > wrote: 
> > 
> > Peter, thanks for the code sample 
> > 
> > Could you please elaborate on what exactly the next line means 
> > jbase_getdpEX(NULL,NULL,1,NULL) 
> > 
> > Thanks 
> > Igor 
> > 
> > -- 
> > -- 
> > IMPORTANT: T24/Globus posts are no longer accepted on this forum. 
> > 
> > To post, send email to jb...@googlegroups.com  
> > To unsubscribe, send email to jbase-un...@googlegroups.com  
> > For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "jBASE" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jb...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com.
>  
>
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com.


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 
> 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:13:48 UTC+1 пользователь pfalson написал:
>> 
>> That creates a regular jBASE session dp. The null args are more for internal 
>> use. 
>> 
>> Sent from my iPhone 
>> 
>> > On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy  wrote: 
>> > 
>> > Peter, thanks for the code sample 
>> > 
>> > Could you please elaborate on what exactly the next line means 
>> > jbase_getdpEX(NULL,NULL,1,NULL) 
>> > 
>> > Thanks 
>> > Igor 
>> > 
>> > -- 
>> > -- 
>> > IMPORTANT: T24/Globus posts are no longer accepted on this forum. 
>> > 
>> > To post, send email to jb...@googlegroups.com 
>> > To unsubscribe, send email to jbase-un...@googlegroups.com 
>> > For more options, visit this group at 
>> > http://groups.google.com/group/jBASE?hl=en 
>> > 
>> > --- 
>> > You received this message because you are subscribed to the Google Groups 
>> > "jBASE" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to jb...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com.
>> >  
> 
> -- 
> -- 
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>  
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbase+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com.

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/BDC0BAEB-BBEB-4F86-B508-08374E9E4028%40gmail.com.


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 92673
From: jbase@googlegroups.com  On Behalf Of Igor 
Osmolovskiy
Sent: Monday, March 9, 2020 6:10 AM
To: jBASE 
Subject: Re: Getting the jBase DP (data pointer) of the current session when 
using pure C

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:13:48 UTC+1 пользователь pfalson написал:
That creates a regular jBASE session dp. The null args are more for internal 
use.

Sent from my iPhone

> On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy > 
> wrote:
>
> Peter, thanks for the code sample
>
> Could you please elaborate on what exactly the next line means
> jbase_getdpEX(NULL,NULL,1,NULL)
>
> Thanks
> Igor
>
> --
> --
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>
> To post, send email to jb...@googlegroups.com
> To unsubscribe, send email to jbase-un...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jb...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to 
jbase-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com.

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/MN2PR18MB351231B0E400775FEA1A7E8DC4FE0%40MN2PR18MB3512.namprd18.prod.outlook.com.


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 пользователь pfalson написал:
>
> 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 
> 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:13:48 UTC+1 пользователь pfalson написал:
>>
>> That creates a regular jBASE session dp. The null args are more for 
>> internal use. 
>>
>> Sent from my iPhone 
>>
>> > On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy  wrote: 
>> > 
>> > Peter, thanks for the code sample 
>> > 
>> > Could you please elaborate on what exactly the next line means 
>> > jbase_getdpEX(NULL,NULL,1,NULL) 
>> > 
>> > Thanks 
>> > Igor 
>> > 
>> > -- 
>> > -- 
>> > IMPORTANT: T24/Globus posts are no longer accepted on this forum. 
>> > 
>> > To post, send email to jb...@googlegroups.com 
>> > To unsubscribe, send email to jbase-un...@googlegroups.com 
>> > For more options, visit this group at 
>> http://groups.google.com/group/jBASE?hl=en 
>> > 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups "jBASE" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to jb...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com.
>>  
>>
>>
> -- 
> -- 
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>  
> To post, send email to jb...@googlegroups.com 
> To unsubscribe, send email to jbase-un...@googlegroups.com 
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jb...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com
>  
> 
> .
>
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/ab505f7e-35ba-47be-8452-70d52787c994%40googlegroups.com.


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 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 92673
> *From:* jb...@googlegroups.com   > *On Behalf Of *Igor Osmolovskiy
> *Sent:* Monday, March 9, 2020 6:10 AM
> *To:* jBASE >
> *Subject:* Re: Getting the jBase DP (data pointer) of the current session 
> when using pure C
>
>  
>
> 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:13:48 UTC+1 пользователь pfalson написал:
>
> That creates a regular jBASE session dp. The null args are more for 
> internal use. 
>
> Sent from my iPhone 
>
> > On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy  wrote: 
> > 
> > Peter, thanks for the code sample 
> > 
> > Could you please elaborate on what exactly the next line means 
> > jbase_getdpEX(NULL,NULL,1,NULL) 
> > 
> > Thanks 
> > Igor 
> > 
> > -- 
> > -- 
> > IMPORTANT: T24/Globus posts are no longer accepted on this forum. 
> > 
> > To post, send email to jb...@googlegroups.com 
> > To unsubscribe, send email to jbase-un...@googlegroups.com 
> > For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en 
> 
>  
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "jBASE" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jb...@googlegroups.com. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com
>  
> .
>  
>
>
> -- 
> -- 
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>  
> To post, send email to jb...@googlegroups.com 
> To unsubscribe, send email to jbase-un...@googlegroups.com 
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en 
> 
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jb...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com
>  
> 
> .
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/4d42aaec-5bed-4546-a748-4ccdc51a563e%40googlegroups.com.


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:
> 
> 
> 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 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 92673
>> From: jb...@googlegroups.com  On Behalf Of Igor 
>> Osmolovskiy
>> Sent: Monday, March 9, 2020 6:10 AM
>> To: jBASE 
>> Subject: Re: Getting the jBase DP (data pointer) of the current session when 
>> using pure C
>>  
>> 
>> 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:13:48 UTC+1 пользователь pfalson написал:
>> 
>> That creates a regular jBASE session dp. The null args are more for internal 
>> use. 
>> 
>> Sent from my iPhone 
>> 
>> > On Mar 6, 2020, at 2:56 PM, Igor Osmolovskiy  wrote: 
>> > 
>> > Peter, thanks for the code sample 
>> > 
>> > Could you please elaborate on what exactly the next line means 
>> > jbase_getdpEX(NULL,NULL,1,NULL) 
>> > 
>> > Thanks 
>> > Igor 
>> > 
>> > -- 
>> > -- 
>> > IMPORTANT: T24/Globus posts are no longer accepted on this forum. 
>> > 
>> > To post, send email to jb...@googlegroups.com 
>> > To unsubscribe, send email to jbase-un...@googlegroups.com 
>> > For more options, visit this group at 
>> > http://groups.google.com/group/jBASE?hl=en 
>> > 
>> > --- 
>> > You received this message because you are subscribed to the Google Groups 
>> > "jBASE" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to jb...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/jbase/050fac31-e1aa-46e0-99bd-59d6f8dcdea7%40googlegroups.com.
>> 
>> -- 
>> -- 
>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>  
>> To post, send email to jb...@googlegroups.com
>> To unsubscribe, send email to jbase-un...@googlegroups.com
>> For more options, visit this group at 
>> http://groups.google.com/group/jBASE?hl=en
>> 
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "jBASE" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jb...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jbase/3308135a-4d22-4124-88c0-d5b693d9ed2d%40googlegroups.com.
>> 
> 
> -- 
> -- 
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>  
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbase+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jbase/4d42aaec-5bed-4546-a748-4ccdc51a563e%40googlegroups.com.

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/70861CBC-AA46-4B2F-A6AC-147448AC770D%40gmail.com.