Hello, All.

   I've noticed that examples in examples/interfaces has one bug: they don't 
check for 
interface versions.
   Let's see:

>               st = master->getStatus();
>               prov = master->getDispatcher();
>               att = prov->createDatabase(st, "fbtests.fdb", dpb - dpbBuf, 
> dpbBuf);

   Here it doesn't check version of IMaster, IStatus, IProvider. It is safe now 
because 
there is only one version of these interfaces. But if this example run against 
old client 
library, it can't be sure that IProvider has createDatabase or any other method 
whoch is 
going to be called. You, for example, must upgrade IProvider before calling any 
method 
from it. The same is true for every interface returned by any function.
   Wouldn't be endless checking annoying?..

-- 
   WBR, SD.

------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to