Oops... struct *linkp should be struct DisTableH_ *linkp
> I was wondering what the most popular solution for dynamically creating
and
> deleting handles?
>
> I'm thinking of doing something like this:
>
> typedef struct DisTableH_
> {
> handle jurisdictionH;
> handle odometerH;
> struct *linkp;
> } DisTableH, *DisTableHPtr;
>
> // Global pointers...
> DisTableHPtr disTbl, disTblTemp;
>
> // some starting point code...
> disTbl = MemPtrNew(sizeof(DisTableH));
> disTblTemp = disTbl;
>
> // etc....
>
> Then moving down the list, freeing and allocating memory as necessary to
the
> linked list. Is this the common way to do something like this when
dealing
> with tables that can vary depending on records added or deleted?
>
> I coded a test to see if something works, but I know there is a memory
leak
> resident. I want to find a suitable way to terminate this.
>
> +++++++++++++
> Timothy D. Astle
> Embedded Systems Programmer
> ALT Group Inc.
> +++++++++++++
>
> People on Jolt cola write the funniest things.
>
> A-10 Obedience Guide,
> Kitty Hawk Studios
>
>
>
>
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/