I attach a small DLL, which makes use of Windows Shared Memory. You can use it to pass information between independant Reginald scripts.
for setting a shared memory array you use:
putshr("array-name",element-number,"record contents")
for getting it:
getshr("array-name",element-number)
as soon as an application ends which has set the array, it will automatically removed, and is no longer available for other rexx scripts.
As we use the Windows System resources it is not infinite. In my environment I got a "system resources exhausted" when I add more than 32000 elements.
You find 2 Test scripts WriteShared and ReadShared which illustrates the usage. Start WriteShared first, and then run ReadShared. |