crash with MakeSearch
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Oct 31 09:39:17 CST 2003
on 10/31/03 9:20, Arthur Clemens at aclemens at xs4all.nl wrote:
>> FBL_BitSet* resultsBitset = mBaseObject1.MakeSearch( searchTree );
>> if (resultsBitset->IsEmpty()) {
>> ^^^^^^^^^^^^^^^^^^^^^^^^^ here crash.
>>
>>
>> But Arthur, resultsBitset is NULL, so of course you get crash.
>>
>> You need simply check pointer
>>
>> if(resultsBitset == NULL || resultsBitset->IsEmpty() ) {
>
> OK, so I *do* need to check there. I though Valentina would do it for
> me. I will try in my code.
No,
Valentina simply return NULL pointer.
Because this is the smallest amount of RAM. :-)
There is no sense even ALLOCATE and later DEALLOCATE empty bitset object.
You see?
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list