Hi All Within an execution environment, all subroutines using a given common name, including unnamed common, must have each common the same size as every other subroutine in the same environment, otherwise you get a COMMON SIZE MISMATCH ERROR.
That is why, when you have 2 includes containing unnamed common, and include one in one subroutine and both in another, you get the common size mismatch error. In short, put all your unnamed common in one include only and your problems will go away Regards John Woollam | Group Financial Systems | Travis Perkins PLC | 01604 682751 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Anthony W. Youngman Sent: 08 October 2009 16:51 To: [email protected] Subject: Re: [U2] UniObject .NET Session and Common Block Bug In message <13e4ae055d203648a4121114f2458c8c7a4adb8...@tefnut.perth.itvision.com.au> , Adrian Halid <[email protected]> writes >Thanks for the help. > >It seems once you name your common block you do not get the error anymore. I don't think that's the problem ... > >Just having a read of the documentation about the common statement in >the documentation. > >"A common area can be either named or unnamed. An unnamed common area is >lost when the program completes its execution and control returns to >the UniVerse >command level. A named common area remains available for as long as the user >remains in the UniVerse environment." > >>From what it says I should be able to have them unnamed and loose it >>between subroutine calls. That may well depend on your emulation. AIUI, unnamed common persists for as long as a program runs. It's returning to TCL that clears unnamed common (as I say, AIUI, I've never used unnamed common). Named common persists until you log out. And I've had several obscure bugs where something tries to changed the size of common - that's not allowed. So if subroutine A effectively contains "COMMON A,B,C" while subroutine B effectively contains "COMMON A,B,C,D,E,F" then running them in the same execution environment *will* cause a crash because B has tried to redefine common. > >Regards > > >Adrian Halid >Senior Analyst/Programmer > Cheers, Wol -- Anthony W. Youngman <[email protected]> 'Yings, yow graley yin! Suz ae rikt dheu,' said the blue man, taking the thimble. 'What *is* he?' said Magrat. 'They're gnomes,' said Nanny. The man lowered the thimble. 'Pictsies!' Carpe Jugulum, Terry Pratchett 1998 Visit the MaVerick web-site - <http://www.maverick-dbms.org> Open Source Pick _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users <html> <head> <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> </head> <body> <P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This e-mail and any attachments are confidential and intended solely for the use of the addressee only. If you have received this message in error, you must not copy, distribute or disclose the contents; please notify the sender immediately and delete the message. </SPAN></P> <P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This message is attributed to the sender and may not necessarily reflect the view of Travis Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis Perkins may not be concluded by means of e-mail communication. </SPAN></P> <P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">E-mail transmissions are not secure and Travis Perkins accepts no responsibility for changes made to this message after it was sent. Whilst steps have been taken to ensure that this message is virus free, Travis Perkins accepts no liability for infection and recommends that you scan this e-mail and any attachments. </SPAN></P> <P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">Part of Travis Perkins plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, Northampton, NN5 7UG. </SPAN></P> </BODY> </HTML> _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
