From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,42a5281d9e86b7c2,start X-Google-Attributes: gid1164f8,public From: "David Eagles" Subject: Shareable Images under OpenVMS (Alpha) Date: 1997/07/25 Message-ID: <5r8710$93@world1.logicworld.com.au>#1/1 X-Deja-AN: 258632507 Organization: PlaNET Consulting Pty Limited X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3 Newsgroups: comp.sys.dec I was hoping someone may be able to provide me with some assistance in the creation of a shared image under OpenVMS on an Alpha. I appologise if this is not the most approprite group or the question is answered elsewhere, and also for the length of the message... The situation is this: I need to create a shareable image (using DECC with /STANDARD=VAXC enabled) to share data (and possibly functions) between a number of tasks on an Alpha. No matter what I try though, I don't seem to be able to see changes made by one task from another... I have written a simple test in which the shared image contains an array of ints (ie. int exdata[256] ). Two applications are linked against this - one displays the contents of the data array every 5 seconds while the other allows values to be written to it. However, after compiling linking everything, and installing the shared image, I don't get the expected result. To further compound the problem, the final applications will need to be linked against another packages libraries which require the common_block external model (ie. /extern_model=common_block during compilation). However, my tests do not work either with or without this switch)... At present, I'm using the following approach cc /standard=vaxc /extern_model=common_block app1 cc /standard=vaxc /extern_model=common_block app2 cc /standard=vaxc /extern_model=common_block shared1 link /share=shared1.exe share.opt/opt link app1, app.opt/opt link app2, app.opt/opt where share.opt contains ! shared1.obj ! GSMATCH = LEQUAL,01,00 IDENTIFICATION = "CCSGLC V1.0" ! SYMBOL_VECTOR = ( exdata = DATA ) ! ! and app.opt contains ! sys$disk:[]shared1/share ! I can then define /system shared1sys$disk:[]shared1.exe install create shared1 /share /write run a (in one DECterm) run b (in a second DECterm) The periodic display of the data always displays all 0's, even though the setting is working. Performing a install list shared1 /full gives SHARED1;1 Open Shar Lnkbl Wrt Entry access count = 2 Current / Maximum shared = 0 / 2 Global section count = 4 Can any kind soul possibly provide me with some information (or even better, some sample code and instructions :-) ) which will enable me to overcome this problem... Any assistance would be greatly appreciated! Regards, David Eagles david@pc.com.au