on 10/31/03 9:20, Arthur Clemens at aclemens AT xs4all .DO.T 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@paradigmasoft.com web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina -------------------------------------------------------------
_______________________________________________ Valentina mailing list Valentina AT lists .DO.T macserve.net http://lists.macserve.net/mailman/listinfo/valentina
©2003 Ruslan Zasukhin |