Init Check Bug? Re: Sizes and checks
Ed Kleban
Ed at Kleban.com
Wed Dec 28 16:42:54 CST 2005
On 12/28/05 4:11 PM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:
> 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.
Great. I'll fix the code. You fix the documentation. Deal?
More information about the Valentina
mailing list