comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » common block question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
common block question [message #75726] Wed, 13 April 2011 12:15
oxfordenergyservices is currently offline  oxfordenergyservices
Messages: 56
Registered: January 2009
Member
I am writing a program which will call a number of subroutines. I
have a number of arrays, the largest of which (and will take a
significant part of the memory) will be used in most (but not all) of
the subroutines, will be created at the beginning and be retained
until the end of the program.

Is it easiest for me to define a common block in the main program with
this main array and make this block available to the other sub
routines when necessary? Is there any overhead in making the block
available to all sub routines?

I really just want to use a few global variables which are available
to the whole list of programs

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [Announce] icg_lib 11.0a2
Next Topic: Re: cumulative total bug with array of size 1

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:11:53 PDT 2025

Total time taken to generate the page: 0.00434 seconds