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 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 <igo...@gmail.com > <javascript:>> wrote: > > > 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 a > dll rather than executable (which can be removed even). So the same address > space is used. > On the contrary when we call python then it is always a separate > executable with its own address space.. > > вторник, 10 марта 2020 г., 19:03:45 UTC пользователь pfalson написал: > >> https://github.com/pickmultivalue/jPython >> >> On Tue, Mar 10, 2020 at 7:11 AM Igor Osmolovskiy <igo...@gmail.com> >> wrote: >> >>> Would be interesting to have a look >>> Thanks! >>> >>> понедельник, 9 марта 2020 г., 19:31:07 UTC+1 пользователь pfalson >>> написал: >>>> >>>> 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 <igo...@gmail.com> 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 <jb...@googlegroups.com> *On Behalf Of >>>>> *Igor Osmolovskiy >>>>> *Sent:* Monday, March 9, 2020 6:10 AM >>>>> *To:* jBASE <jb...@googlegroups.com> >>>>> *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 <igo...@gmail.com> >>>>> 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 >>>>> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2FjBASE%3Fhl%3Den&data=02%7C01%7Cdane%40jbase.com%7C2735ab848de94763c06908d7c42dccb7%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C0%7C637193573316590034&sdata=VRW0p3%2FwtOLrTqVmRe8kA%2FaqG0qtFUkCXyVZG4yTrtU%3D&reserved=0> >>>>> >>>>> > >>>>> > --- >>>>> > 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 >>>>> >>>>> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjbase%2F050fac31-e1aa-46e0-99bd-59d6f8dcdea7%2540googlegroups.com&data=02%7C01%7Cdane%40jbase.com%7C2735ab848de94763c06908d7c42dccb7%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C0%7C637193573316590034&sdata=vlTrFwviCbBUQ%2BM1gJtK%2BEYHCIhO9T%2B4Lcl9z%2FFifV4%3D&reserved=0>. >>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> 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 >>>>> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2FjBASE%3Fhl%3Den&data=02%7C01%7Cdane%40jbase.com%7C2735ab848de94763c06908d7c42dccb7%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C0%7C637193573316600023&sdata=C0g7WVU0MT7Rzp90HiQkjwmyNdIa7WS2U5UznTBzWvU%3D&reserved=0> >>>>> >>>>> --- >>>>> 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 >>>>> >>>>> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjbase%2F3308135a-4d22-4124-88c0-d5b693d9ed2d%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Cdane%40jbase.com%7C2735ab848de94763c06908d7c42dccb7%7Cbfd62fcabd384e07a0785e9943d1f9c0%7C0%7C0%7C637193573316610020&sdata=HgYP5YlsaNvbsC6vEI8vgbLTfTWChbcoAyiM2h83QR4%3D&reserved=0> >>>>> . >>>>> >>>> -- >>>> -- >>>> 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/4d42aaec-5bed-4546-a748-4ccdc51a563e%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/jbase/4d42aaec-5bed-4546-a748-4ccdc51a563e%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> -- >>> -- >>> 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/4d5408e1-e74e-4985-969e-c3b8d3cc3499%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jbase/4d5408e1-e74e-4985-969e-c3b8d3cc3499%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to jb...@googlegroups.com <javascript:> > To unsubscribe, send email to jbase-un...@googlegroups.com <javascript:> > 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 <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jbase/4cbd40b0-1cdd-4908-a7c0-3e0ab550adf1%40googlegroups.com > > <https://groups.google.com/d/msgid/jbase/4cbd40b0-1cdd-4908-a7c0-3e0ab550adf1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- -- 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/57591946-33e0-48c7-ab15-5f97473e238e%40googlegroups.com.