[Info-vax] Basic & Global sections

John Doppke jdoppke at gmail.com
Sat Nov 6 18:55:33 EDT 2021


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



More information about the Info-vax mailing list