At 3:56 PM -0700 1999/06/21, Christopher Hunt wrote:
>Does anybody know how to obtain the true record size of a record in a
>database?
>
>I have a scenario where DmNewRecord allocates successfully and returns a
>handle. If I then subsequently obtain the handle's size I sometimes find
>that the Data Manager has reused some previously allocated space
>(possibly from a deleted record). Consequently the handle size is larger
>than what I previously declared to DmNewRecord.

Records are just memory handles that live in the storage heap... their sizes do not 
mysteriously change without explicit resize operations.

My guess is something in your code, or perhaps in a hack, or some other code, is 
changing the size of the handle, or perhaps you're taking the size of the wrong 
handle, or obtaining the wrong record, or caching the handle's pointer after it's 
unlocked and taking its size, or...? Hmmm... lots of possibilities here.


>I acknowledge that other things could be causing the above behavior but
>I have looked long and hard and this is what I finally conclude. Any
>validation of my observations would be greatly appreciated.

Can't validate your observations. Sorry. Lots of things would break if memory handles 
started changing their sizes when they felt like it.

Could you describe the situation you're observing in more detail and/or provide a 
reproducible test case (sample code)? Also, on what OS version are you seeing this... 
what database... when... etc.?

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering

Reply via email to