Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The clearest way into the Universe is through a forest wilderness. -- John Muir


computers / comp.os.vms / Basic & Global sections

SubjectAuthor
* Basic & Global sectionsJohn Doppke
+- Re: Basic & Global sectionsStephen Hoffman
+- Re: Basic & Global sectionsScott Dorsey
+- Re: Basic & Global sectionsBob Gezelter
+- Re: Basic & Global sectionsHein RMS van den Heuvel
+* Re: Basic & Global sectionschris
|`* Re: Basic & Global sectionsJohn Doppke
| +- Re: Basic & Global sectionsLawrence D’Oliveiro
| `- Re: Basic & Global sectionsHein RMS van den Heuvel
`- Re: Basic & Global sectionsNeil Rieck

1
Basic & Global sections

<4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18444&group=comp.os.vms#18444

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:2589:: with SMTP id x9mr41997584qko.454.1636043424865;
Thu, 04 Nov 2021 09:30:24 -0700 (PDT)
X-Received: by 2002:a05:620a:2589:: with SMTP id x9mr41997564qko.454.1636043424655;
Thu, 04 Nov 2021 09:30:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 4 Nov 2021 09:30:24 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=68.32.212.191; posting-account=WnLuRwoAAACJLvF6yOLCgCkvK5ataUzs
NNTP-Posting-Host: 68.32.212.191
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Subject: Basic & Global sections
From: jdop...@gmail.com (John Doppke)
Injection-Date: Thu, 04 Nov 2021 16:30:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: John Doppke - Thu, 4 Nov 2021 16:30 UTC

Hey all,

I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.

Is there something inherent in the structure of a Basic array that doesn't work in a global section?

I've also tried an installed shared psect image and that works OK.

-John

Re: Basic & Global sections

<sm1ahb$lu8$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18446&group=comp.os.vms#18446

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: Basic & Global sections
Date: Thu, 4 Nov 2021 14:58:51 -0400
Organization: HoffmanLabs LLC
Lines: 58
Message-ID: <sm1ahb$lu8$1@dont-email.me>
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="eed092900a6bdbd7bb60afdb96118048";
logging-data="22472"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ALFmEovIBefTZumTfGnDjAWVZCR6nvas="
User-Agent: Unison/2.2
Cancel-Lock: sha1:NZVNvkQTMIJWt8mRuf+62bNJ4MA=
 by: Stephen Hoffman - Thu, 4 Nov 2021 18:58 UTC

On 2021-11-04 16:30:24 +0000, John Doppke said:

> I've been playing with some inter-process communication via Basic using
> a global section. It all works very well except for one thing - data
> in an array. Everything else comes across nicely - strings, longs,
> etc. But anything in an array written by one process never shows up in
> the other.
>
> Is there something inherent in the structure of a Basic array that
> doesn't work in a global section?
>
> I've also tried an installed shared psect image and that works OK.

Without using the debugger to look at what's been written into the
section, I'd guess that you've used a position-independent section and
have that section mapped into to different virtual address ranges and
the data structures you've then written data structures (e.g. string
and array descriptors) containing virtual addresses from one process
context that are mismatched with the virtual addresses from the other
process(es) accessing that same section.

BASIC doesn't do base-relative memory access, which means you'll have
to map the section at the same virtual address range in each process
(commons tend to be mapped at fixed addresses), or use only data and
not addresses, or do some work to wrap base-relative access for use
from BASIC.

C, C++, and ilk do better here than does BASIC, as pointers and pointer
math and pointer dereferencing are language-integrated, and as
base-relative memory addressing can be implemented with what's
available within the language. BASIC LOC() only gets you so far.

Mapping the section into an address range up in 64-bit P2 space can be
an alternative to the usually-more-crowded P0 space, but BASIC is again
less than useful there being a 32-bit language. BASIC LOC() returns a
longword, not a quadword.

One other wrinkle you'll encounter as you proceed: you will want to
understand and use interlocked queue instructions and interlocked
bitlocks just as soon as you start using a multiprocessor system, as
now you're fully exposed to processor caching. This detail and other
parts of resource coordination and locking are discussed in the
Programming Concepts manual. Some of that material starts around here:
https://docs.vmssoftware.com/vsi-openvms-programming-concepts-manual-volume-i/#SYNCH_ACCESS_DATA
etc.

In aggregate, using IP sockets, mailboxes, ICC, or other APIs, can be
preferable for all but the highest-performance requirements, as these
existing APIs deal with this low-level memory and cache stuff and
back-pressure and with notification support already available. Even
local DECnet, for the few of you that have that set up—though ICC is
patterned on DECnet, and requires no license on host or within a
cluster, and requires no network configuration and no startup.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Basic & Global sections

<sm1fdf$3dp$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18455&group=comp.os.vms#18455

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: Basic & Global sections
Date: 4 Nov 2021 20:22:07 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 18
Message-ID: <sm1fdf$3dp$1@panix2.panix.com>
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Injection-Info: reader1.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="12730"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Thu, 4 Nov 2021 20:22 UTC

John Doppke <jdoppke@gmail.com> wrote:
>
>I've been playing with some inter-process communication via Basic using a g=
>lobal section. It all works very well except for one thing - data in an ar=
>ray. Everything else comes across nicely - strings, longs, etc. But anyth=
>ing in an array written by one process never shows up in the other.
>
>Is there something inherent in the structure of a Basic array that doesn't =
>work in a global section?

I don't know BASIC, but if the array is secretly a pointer like it is in
many languages, then passing the pointer to another process is likely not
useful since the process can't see the data.
--scott

--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: Basic & Global sections

<2ee6543b-215f-4882-a807-bc0468cddb53n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18460&group=comp.os.vms#18460

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:b6c1:: with SMTP id g184mr44179957qkf.270.1636070701031;
Thu, 04 Nov 2021 17:05:01 -0700 (PDT)
X-Received: by 2002:a37:434a:: with SMTP id q71mr44520762qka.222.1636070700878;
Thu, 04 Nov 2021 17:05:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 4 Nov 2021 17:05:00 -0700 (PDT)
In-Reply-To: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=100.2.113.217; posting-account=r2_qcwoAAACbIdit5Eka3ivGvrYZz7UQ
NNTP-Posting-Host: 100.2.113.217
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2ee6543b-215f-4882-a807-bc0468cddb53n@googlegroups.com>
Subject: Re: Basic & Global sections
From: gezel...@rlgsc.com (Bob Gezelter)
Injection-Date: Fri, 05 Nov 2021 00:05:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 40
 by: Bob Gezelter - Fri, 5 Nov 2021 00:05 UTC

On Thursday, November 4, 2021 at 12:30:26 PM UTC-4, jdo...@gmail.com wrote:
> Hey all,
>
> I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.
>
> Is there something inherent in the structure of a Basic array that doesn't work in a global section?
>
> I've also tried an installed shared psect image and that works OK.
>
> -John
John,

I agree with many of the thoughts expressed by Hoff.

I have a bit of experience with BASIC, several clients have been very BASIC-centric. Combining shareable storage with BASIC and other languages always requires a serious degree of caution.

First, just compiling and linking is more involved, the sources have follow explicit guidelines to have the common areas actually shared between processes, and persist if one process terminates. You also need the tools to reset the shared area and other utility tasks. Manipulating data in the common area similarly requires caution, timing errors are difficult to reproduce. The various interlocked instructions must be used religiously.

Performance wise, the complexity often is not needed. Local TCP/UDP links, local DECnet links, even mailboxes have higher overhead than shared memory, but one must consider the actual traffic volume. On even slow systems, e.g.. first generation Alpha CPUs, I could process tens if not hundreds of thousands of requests/second using network links while avoiding all of the difficulties of using shared memory.

Been there, done that. My recommendation is that it is a path to be avoided if at all possible. There are better ways to accomplish almost all of the requirements.

- Bob Gezelter, http://www.rlgsc.com

Re: Basic & Global sections

<b8c9b3a8-d56e-4f79-ace3-0b7f1a250ea8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18465&group=comp.os.vms#18465

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:134e:: with SMTP id w14mr38472128qtk.33.1636086158934;
Thu, 04 Nov 2021 21:22:38 -0700 (PDT)
X-Received: by 2002:a05:6214:c81:: with SMTP id r1mr54726010qvr.31.1636086158625;
Thu, 04 Nov 2021 21:22:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 4 Nov 2021 21:22:38 -0700 (PDT)
In-Reply-To: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.147.72.155; posting-account=U1iMPAoAAAC9r8wm0KaW63EcF8sfjFeH
NNTP-Posting-Host: 24.147.72.155
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b8c9b3a8-d56e-4f79-ace3-0b7f1a250ea8n@googlegroups.com>
Subject: Re: Basic & Global sections
From: heinvand...@gmail.com (Hein RMS van den Heuvel)
Injection-Date: Fri, 05 Nov 2021 04:22:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 40
 by: Hein RMS van den Heu - Fri, 5 Nov 2021 04:22 UTC

On Thursday, November 4, 2021 at 12:30:26 PM UTC-4, jdo...@gmail.com wrote:
> Hey all,
>
> I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.
>
> Is there something inherent in the structure of a Basic array that doesn't work in a global section?
>
> I've also tried an installed shared psect image and that works OK.
>
> -John

It worked for me, back in the day!

The User guide has a small section dedication to this:
6.2.3 Creating Arrays with the COMMON Statement

So it's supposed to wrok one would think.

Please compile the writer, reader and declaration modules with /LIST/SHOW=MAP
Look for your (array) variables in the "Allocation information for COMMON <your common or map name>"
Look for similar 'sounding' variables outside the Psect.

Show us! I expect it to be a silly programming oversight.

If needed
Show us the MAP (or COMMON)
Show us the assignments from and to.
Remind us how you build the shareable (LINK /OPT ) and do the install.
And just in case, as with any and every support question:
Operating System version, Architecture, Compiler version.

I'm happy try it, but that's best done with an example close to your usage.

Cheers,
Hein

Re: Basic & Global sections

<sm3t2v$cn7$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18470&group=comp.os.vms#18470

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-no...@tridac.net (chris)
Newsgroups: comp.os.vms
Subject: Re: Basic & Global sections
Date: Fri, 05 Nov 2021 18:27:43 +0000
Organization: Aioe.org NNTP Server
Message-ID: <sm3t2v$cn7$1@gioia.aioe.org>
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="13031"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Fri, 5 Nov 2021 18:27 UTC

On 11/04/21 16:30, John Doppke wrote:
> Hey all,
>
> I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.
>
> Is there something inherent in the structure of a Basic array that doesn't work in a global section?
>
> I've also tried an installed shared psect image and that works OK.
>
> -John

You need to ensure that the array is copied to the global section, not
just a pointer to it, which will be meaningless to the other process.

Not familiar with Basic, but suggest check that out...

Chris

Re: Basic & Global sections

<45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18502&group=comp.os.vms#18502

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:4cf:: with SMTP id q15mr73235493qtx.265.1636239334260;
Sat, 06 Nov 2021 15:55:34 -0700 (PDT)
X-Received: by 2002:a37:9d86:: with SMTP id g128mr26310241qke.30.1636239334101;
Sat, 06 Nov 2021 15:55:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sat, 6 Nov 2021 15:55:33 -0700 (PDT)
In-Reply-To: <sm3t2v$cn7$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=68.32.212.191; posting-account=WnLuRwoAAACJLvF6yOLCgCkvK5ataUzs
NNTP-Posting-Host: 68.32.212.191
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com> <sm3t2v$cn7$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>
Subject: Re: Basic & Global sections
From: jdop...@gmail.com (John Doppke)
Injection-Date: Sat, 06 Nov 2021 22:55:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 25
 by: John Doppke - Sat, 6 Nov 2021 22:55 UTC

On Friday, November 5, 2021 at 2:27:47 PM UTC-4, chris wrote:
> On 11/04/21 16:30, John Doppke wrote:
> > Hey all,
> >
> > I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.
> >
> > Is there something inherent in the structure of a Basic array that doesn't work in a global section?
> >
> > I've also tried an installed shared psect image and that works OK.
> >
> > -John
> You need to ensure that the array is copied to the global section, not
> just a pointer to it, which will be meaningless to the other process.
>
> Not familiar with Basic, but suggest check that out...
>
> Chris
It ended up being a stupid mistake - I added the array to the common area it increased the section size, but I forgot to increase the number of mapped pages in my call. It all works well now.

-John

Re: Basic & Global sections

<bd2e0d9d-2252-46ef-9faf-b7ea576e30a1n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18506&group=comp.os.vms#18506

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:4155:: with SMTP id e21mr71925100qtm.312.1636244284203;
Sat, 06 Nov 2021 17:18:04 -0700 (PDT)
X-Received: by 2002:a0c:e58d:: with SMTP id t13mr65389841qvm.7.1636244284044;
Sat, 06 Nov 2021 17:18:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sat, 6 Nov 2021 17:18:03 -0700 (PDT)
In-Reply-To: <45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=118.92.47.103; posting-account=Rx7iEQoAAACMdczcZGHsDFakQWn8-8-t
NNTP-Posting-Host: 118.92.47.103
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
<sm3t2v$cn7$1@gioia.aioe.org> <45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bd2e0d9d-2252-46ef-9faf-b7ea576e30a1n@googlegroups.com>
Subject: Re: Basic & Global sections
From: lawrence...@gmail.com (Lawrence D’Oliveiro)
Injection-Date: Sun, 07 Nov 2021 00:18:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 9
 by: Lawrence D’Oliveir - Sun, 7 Nov 2021 00:18 UTC

On Sunday, November 7, 2021 at 11:55:35 AM UTC+13, jdo...@gmail.com wrote:
> ... I added the array to the common area it increased the section size, but I forgot
> to increase the number of mapped pages in my call.

The instinctive response of an assembly-language programmer is to place an “end” symbol after the last object in the common area, and subtract its address from the start to compute how many pages you need, instead of working it out manually. That way it automatically adapts to any changes you might make.

Re: Basic & Global sections

<1b720e73-2cfd-4f49-a531-c44838deb3ean@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18509&group=comp.os.vms#18509

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:a8e:: with SMTP id 136mr445763qkk.395.1636251121125;
Sat, 06 Nov 2021 19:12:01 -0700 (PDT)
X-Received: by 2002:a05:6214:20ab:: with SMTP id 11mr4565205qvd.31.1636251120947;
Sat, 06 Nov 2021 19:12:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sat, 6 Nov 2021 19:12:00 -0700 (PDT)
In-Reply-To: <45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.147.72.155; posting-account=U1iMPAoAAAC9r8wm0KaW63EcF8sfjFeH
NNTP-Posting-Host: 24.147.72.155
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
<sm3t2v$cn7$1@gioia.aioe.org> <45d6ec9f-151d-448d-bc1b-a12c00f6fdf2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1b720e73-2cfd-4f49-a531-c44838deb3ean@googlegroups.com>
Subject: Re: Basic & Global sections
From: heinvand...@gmail.com (Hein RMS van den Heuvel)
Injection-Date: Sun, 07 Nov 2021 02:12:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
 by: Hein RMS van den Heu - Sun, 7 Nov 2021 02:12 UTC

On Saturday, November 6, 2021 at 6:55:35 PM UTC-4, jdo...@gmail.com wrote:
> On Friday, November 5, 2021 at 2:27:47 PM UTC-4, chris wrote:
> > On 11/04/21 16:30, John Doppke wrote:
> > > Hey all,
> > >
> > > I've been playing with some inter-process communication via Basic using a global section. It all works very well except for one thing - data in an array. Everything else comes across nicely - strings, longs, etc. But anything in an array written by one process never shows up in the other.
: :
> It ended up being a stupid mistake - I added the array to the common area it increased the section size, but I forgot to increase the number of mapped pages in my call. It all works well now.

I called it! :-).
Hein: Show us! I expect it to be a silly programming oversight.

Cheers,
Hein

Re: Basic & Global sections

<9caa2bed-e210-4ec1-b05b-3ea28959ca9dn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18819&group=comp.os.vms#18819

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:bc1:: with SMTP id s1mr43266645qki.49.1637500084479;
Sun, 21 Nov 2021 05:08:04 -0800 (PST)
X-Received: by 2002:a05:620a:4f4:: with SMTP id b20mr41924743qkh.471.1637500083552;
Sun, 21 Nov 2021 05:08:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sun, 21 Nov 2021 05:08:03 -0800 (PST)
In-Reply-To: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=70.31.99.225; posting-account=QqCTBgkAAACie99dBE6oFauYH8hE6sk0
NNTP-Posting-Host: 70.31.99.225
References: <4396ca5f-8940-4e26-b4f1-7e4f63681d77n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9caa2bed-e210-4ec1-b05b-3ea28959ca9dn@googlegroups.com>
Subject: Re: Basic & Global sections
From: n.ri...@bell.net (Neil Rieck)
Injection-Date: Sun, 21 Nov 2021 13:08:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1797
 by: Neil Rieck - Sun, 21 Nov 2021 13:08 UTC

Poor Man's MySQL Connector:

A while back, I needed to write some code that would allow DEC-BASIC to interface with mysql client libraries written in C. If you think about it, whenever you send off an SQL query all you know is that the result (if there is one) will be an array of strings. So I needed to be able to pass an array of strings back to BASIC. Those ideas began with a series of hybrid demos:

http://neilrieck.net/demo_vms_html/openvms_demo_index.html#hybrid1 (but I think you should look at #5)

Which culminated in these:

http://neilrieck.net/demo_vms_html/openvms_demo_index.html#mysql_demo11

Neil Rieck
Waterloo, Ontario, Canada.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor