[futurebasic] Re: [FB] Workarounds?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2011 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Tue, 12 Apr 2011 19:43:47 -0500
Robert,

One possibility:

dim my12bytesPtr as ptr
...
my12bytesPtr = fn Newptr( 12 )

I imagine there are more modern ways to allocate a ptr, but this  
should give the idea.

Jay


On Apr 12, 2011, at 7:27 PM, Robert Covington wrote:

> Some old code I have has the aliased variable placeholder for  
> example, which the help mentions is not available any longer...
>
> dim placeholder;12
>
> Is there a workaround? The help says you can't use it, but does not  
> give a workaround.
>
> My Compositor project still is taking 35 seconds to open up in FB5  
> Editor. The old FB4 editor can open the same project near instantly  
> on the same hardware. An FB5 converted one takes the same lengthy  
> time.
>
> :(
>
> rc
>
> Repeat of same tale of woe from October , 2010 (I just gave up  
> using FB back then). Is something repeatedly resizing a handle in a  
> non-optimal way?
>
>> I added a log tracker to Fn OpenProject and associated calls.
>>
>> The loop in Fn ReadProjectIntoDataBase is the culprit, 2500 ticks.
>>
>> For each item added during that loop (just below For  to bottom),  
>> it takes 5 to 9 ticks.
>> For each call to Fn AddItem within that loop, that part  takes 2  
>> to 6 ticks.
>>
>> "Item Added" is total time per item from loop start to loop  
>> end...that's ticks reset just under the For, ticks counted just  
>> above Next.
>>
>> Fn AddItem" is the call in the middle of the loop. It is likely  
>> the bulk of the time, but not all.
>>
>
>
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/ 
> futurebasic/
>
>