25.02.2015 16:20, Dmitry Yemanov wrote: > IObject* obj = ... > ... > obj->something(status); // success > ... > obj->destroy(status); // detach / commit / cancel / etc > ... > obj->something(status); // returns "bad handle" error > ... > obj->release(); // destroys the object (if use_count reaches zero)
Isn't it a bit confusing? May be it would be a good idea not to reuse objects and release them as soon as they are not needed anymore (i.e. make release() the only "destroy method" for consistency sake)?.. -- WBR, SD. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel