Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Negative bytes?
Message
From
04/06/2008 05:28:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/06/2008 18:15:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01321080
Message ID:
01321522
Views:
19
>So... 35 variables, 31 bytes used for their definitions? Variable names with negative length, then? ;) Or did you mean only the space used by variables' content - but then, at least a few of them were numeric, using at least 4 bytes (though I think VFP's numbers are in IEEE format, which is 8 bytes). Again, either some of them were using negative bytes, or had negative lengths... or this is a tiny little bug.

I mean space used by content and when that content is a reference type. I don't know the details of how foxpro counts it but looks like it doesn't count value types (maybe doesn't count until a prealloacted memory space is filled?). When it's a reference type it allocates more than needed bytes (so using some space for extra info, length, memhandle...?).

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform