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 <igos...@gmail.com> wrote: > > > 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> 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 >>>>>>>> > >>>>>>>> > --- >>>>>>>> > 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 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. >>>>> >>>>> -- >>>>> -- >>>>> 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. >>> >>> -- >>> -- >>> 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/4cbd40b0-1cdd-4908-a7c0-3e0ab550adf1%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/57591946-33e0-48c7-ab15-5f97473e238e%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/0F039425-B2D7-4B8A-81D5-B59F9D522F0F%40gmail.com.