[futurebasic] Re: [FB] Boolean variable = 48 instead of 0

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2003 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Thu, 13 Mar 2003 09:01:58 -0500
32K is the individual Local FN variable space limit.

My globals are 3.something MB (lot of arrays, prefs , interface, and 
more) and that's a couple MB less than they used to be before some 
Dynamicatizingation.

That ain't it.:)

Might be due to the variable misalignment that happens when you have a 
boolean, with no other boolean to follow, to even-byte align things. 
That is indicated by how it works when placed in another area. Should 
be getting cleared to 0 regardless though one would think. However I 
have noticed strangeness with "hanging booleans" on occasion.

Robert Bob

On Thursday, March 13, 2003, at 08:54  AM, Rich Love wrote:

>
> When I look at compile info it says
> Global Size 190.82K
>
> Rich
>
> On Wednesday, March 12, 2003, at 08:13  AM, Edwards, Waverly wrote:
>
>>
>> This is a wild stab in the dark but when you do your compile and look 
>> at the
>> compile information, how close are you to 32k in your globals?  I 
>> could be
>> wrong but I think that there is a limit of 32k in either your main or 
>> global
>> variable space.
>>
>> W.
>>
>> -----Original Message-----
>> From: Rich Love [mailto:richlove@...]
>> Sent: Wednesday, March 12, 2003 8:27 AM
>> To: futurebasic@...
>> Subject: [FB] Boolean variable = 48 instead of 0
>>
>>
>>
>> I have a very strange problem that just appeared in my .GLBL file.
>> It has lots of variables that I have added over the years.
>> Last week I tried to add one more variable and it did not work.
>> The variable is a boolean
>> DIM gTestVar AS BOOLEAN
>> When I dimension the variable with the above statement, the value
>> becomes 48 instead of zero.
>>
>> Has anyone seen this or know why it might happen?
>> I moved the DIM statement to my .INCL file and it works like it 
>> should.
>>
>> I wonder if FB is getting the ascii value of zero confused with the
>> real value?
>> (zero is ascii 48)
>>
>> Running Jaguar 10.2.4
>>
>>
>>
>> Rich Love - Carnation Software
>> Terminal emulations for Macintosh - MacWise, MacToPic + and SBMac.
>> richlove@...
>> http://www.carnation-software.com
>> 512 858-9234
>>
>>
>>
>> --
>> To unsubscribe, send ANY message to 
>> <futurebasic-unsubscribe@...>
>>
>> --
>> To unsubscribe, send ANY message to 
>> <futurebasic-unsubscribe@...>
>>
>>
>>
> Rich Love - Carnation Software
> Terminal emulations for Macintosh - MacWise, MacToPic + and SBMac.
> richlove@...
> http://www.carnation-software.com
> 512 858-9234
>
>
>
> --
> To unsubscribe, send ANY message to 
> <futurebasic-unsubscribe@...>
>