Darrin-

Years ago at ADP we used to used dimensioned arrays to maintain a list
of open file pointers (as well as item-ids and the records associated
with them).

So I don't think dynamic arrays will work, but if you switch to
dimensioned arrays (ideally with a common include file) you should be
fine.

Brad.

Idiot at large

On Thu, May 26, 2011 at 12:37 PM, Darrin <[email protected]> wrote:
> Is it possible to store file pointers in a dynamic array? Or is there
> another way to pass a variable number of file pointers to various
> functions?
>
> The problem is that when attempting something like:
> file_ptrs<-1> = new_file_ptr
>
> The following error is returned:
> Invalid or uninitialised variable -- ZERO USED ,
> Var temp_file_ptr , Line    66 , Source process_gpw_node.b
> Trap from an error message, error message name = ZERO_USED
>
> (The variable is defined, it just can't be placed into a dynamic
> array.)
>
> The purpose for this is that when recursively walking an xml tree and
> importing data into jbase, I would like to open files and pass file
> pointers to between functions. The idea being, to avoid the overhead
> of opening and closing multiple files when processing each node.
> Otherwise, files would be opened and closed thousands of times a
> second. My assumption is that there would be some serious overhead to
> this.
>
> --
> Please read the posting guidelines at: 
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions specific 
> to Globus/T24
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
>

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to