Init Check Bug? Re: Sizes and checks
Ruslan Zasukhin
sunshine at public.kherson.ua
Thu Dec 29 00:11:59 CST 2005
On 12/28/05 11:37 PM, "Ed Kleban" <Ed at Kleban.com> wrote:
>>> if Valentina.cacheSize <> ValentinaCacheSize then
>>> alert( here, "Database failed to initialize. CacheSize = " _
>>> + str(Valentina.cacheSize) )
>>
>> Actually this is wrong idea check init success in SUCH way.
>>
>> Because if you ask TOO many RAM for cache, Valentina can allocate less.
>> So you cannot compare.
>
> That explains the difference. But what is the correct test?
> Should I test for
> Valentina.cacheSize > 0
> ???
Yes
Also if Init fails exception can be thrown.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list