>> Does anyone know offhand how much memory it costs to keep a database open?
>> I'm thinking that I need
>> to keep 5 of them open, and I'm kind of dreading this. Will this be a big
>> problem? Most of them will be open for reading only, so no records will be
>> locked.
>>
>
> Rhodes and McKeehan's book indicates about 100 bytes per open databse (Page
> 144).
>
The actual number is probably closer to 50 bytes than 100 bytes for OS 3.0
(according to the sources, we've got one allocation of a DmAccessType, which
is 14 bytes big, plus a DmOpenInfoType at 36 bytes. Adding a little for the
overhead of memory chunks gives us probably around 60 bytes).
The second edition of the book will correct this egregious factor-of-two
mistake:)
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545