> I've run some tests, and they don't look good.
>
A little follow-up. Somebody pointed out that doing a "put" to the
message window uses memory. So, I changed the output to go to a field.
I ran it for 5 minutes on the Mac, and it didn't budge. Oddly enough, I
got a fatal error on Windows after about a minute, so I don't know how
accurate it is there.
The key is to not have the cast (or the member) visible during the run.
I used this script:
property pnFbFree, pnLastFbFree, pnBuddyFree, pnLastBuddyFree
on beginSprite me
pnLastBuddyFree = 0
pnLastFbFree = 0
put " " into field "freeBytes"
put " " into field "Buddy"
end
on exitFrame me
pnFbFree = the freeBytes / 1024
pnBuddyFree = baMemoryInfo("free ram")
if pnFbFree <> pnLastFbFree then
pnLastFbFree = pnFbFree
put pnFbFree & RETURN after field "freeBytes"
end if
if pnBuddyFree <> pnLastBuddyFree then
pnLastBuddyFree = pnBuddyFree
put pnBuddyFree & RETURN after field "Buddy"
end if
go the frame
end
On the Mac, as expected, Buddy just returns 0. Still, I learned
something.
Cordially,
Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]