Right. What I’m suggesting is that any python programs would need to pass on the dp pointer down the chain.
Sent from my iPhone > On Mar 26, 2020, at 6:09 AM, Igor Osmolovskiy <[email protected]> wrote: > > > Let's imagine we are in jshell, thus 1 session has been created already. Then > 1. if we launch jBasic that calls .py there will be still 1 session (i.e. the > same one) > 2. if we launch python that calls .py the second session will be created > > in both cases the same C extension with jbase_getdpEX inside is used > > среда, 25 марта 2020 г., 19:28:17 UTC пользователь pfalson написал: >> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> >>>>>>> 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 <[email protected]> >>>>>>>>>> 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 >>>>>>>>>> [email protected] | www.jbase.com >>>>>>>>>> 1050 Calle Amanecer, Suite A | San Clemente, CA 92673 >>>>>>>>>> From: [email protected] <[email protected]> On Behalf Of >>>>>>>>>> Igor Osmolovskiy >>>>>>>>>> Sent: Monday, March 9, 2020 6:10 AM >>>>>>>>>> To: jBASE <[email protected]> >>>>>>>>>> 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 <[email protected]> >>>>>>>>>> > 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 [email protected] >>>>>>>>>> > To unsubscribe, send email to [email protected] >>>>>>>>>> > 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 [email protected]. >>>>>>>>>> > 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 [email protected] >>>>>>>>>> To unsubscribe, send email to [email protected] >>>>>>>>>> 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 [email protected]. >>>>>>>>>> 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 [email protected] >>>>>>>>> To unsubscribe, send email to [email protected] >>>>>>>>> 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 [email protected]. >>>>>>>>> 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 [email protected] >>>>>>> To unsubscribe, send email to [email protected] >>>>>>> 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 [email protected]. >>>>>>> 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 [email protected] >>>>> To unsubscribe, send email to [email protected] >>>>> 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 [email protected]. >>>>> 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 [email protected] >>> To unsubscribe, send email to [email protected] >>> 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 [email protected]. >>> 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 [email protected] > To unsubscribe, send email to [email protected] > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jbase/723e284a-e4f6-4674-ac9a-ada0c8f1a386%40googlegroups.com. -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to [email protected] To unsubscribe, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/76A1AD8A-18A1-49B3-9901-99B7BD48BD29%40gmail.com.
