[comp.lang.fortran] Allocate in MS Fortran V5.0, Info Requested

rsc503@csc.anu.oz (09/10/90)

Hello, I am hoping that somebody can give me some pointers on how to
use the INTEGER*1 array[ALLOCATABLE] (:), ALLOCATE (array(size)), and 
DEALLOCATE features in Microsoft ForTran V5.0.  The situation is this:
I made an image in an subroutine, then used GETIMAGE to put into the 
array defined by the first two statements (this I did by following the
example ANIMATE.FOR, given in the Advanced Topics manual, p226).  The
problem comes when I try to pass that image to other subroutines.  It 
seems that I cannot put the array into a COMMON block, so do I need to
pass it back as a formal argument to the calling routine, then pass it
down to the other subroutine as another formal argument, and if so, how
do I go about declaring/dimensioning the array in the other modules? How
will this affect the DEALLOCATE statement, which I would like to put into
a different module from the original?

  Any help would be greatly appreciated.  If you wish to send e-mail to
me please use the address below, as a RE to this will go to the system
manager, and I wouldn't want to burden her with too many extraneous (to
her) messages.  Thanking you in advance,
					Ian
--------------------------------------------------------------------------------
      Ian Jamie                     INTERNET: jamie@rsc0.anu.oz.au           	
      Research School of Chemistry, Australian National University
                     Canberra, ACT, Australia       
--------------------------------------------------------------------------------