[futurebasic] Re: [FB] Re: XREF Me

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 2 Feb 2001 00:29:59 -0400
>>
>>Thanks.
>>What about XREF'ing the "DIM myList(1200) as CList" as well, what would
>>that involve?
>>
>>The problem I have is that the image row/columns can vary too, this is what
>>myList handles. The p handle number is based on the scale factor which
>>varies with the filter and percentage scale between source and dest. Small
>>scales, less p, large size difference, a  lot of p. No pun meant. But I
>>will claim it.
>>
>>Would  this work?
>>
>>
>>DIM imageRow as long
>>imageRow = gRect.right-gRect.left  (say this equals 1200 this time)
>>
>>DIM tmpListH as Handle
>>XREF@ myList(imageRow) as CList
>>
>>Sorry, I just got lost... Argh.
>>
>>Now it is a two tier mess...
>>
>>Robert
>>
>
>I cant see how this would work - at some point you need to calculate the
>size of the memory block - XREF takes care ofthe offsets for each element
>in the array. I'm not sure that the offsets can be calculated dynamically,
>and keeping track of the memory blocks size could also be fun.
>
>What do the experts think?
>
>cheers
>
>David

I thunk there was a memory block somewhere.

Why does making use of dynamic memory allocation in FB have to be so hard?

Robert