On 01/24/12 15:11, Claudio Valderrama C. wrote: > Can someone suggest how and when is the compiler using the delete operators > with MemoryPool as second argument? It seems a leftover. Certainly, FB_NEW > and FB_NEW_RPT play with pools, but I see nothing else. >
I know one case - after exception in ctor. When "new(pool) SomeClass()" is invoked exception may be thrown from ctor of SomeClass. But what delete operator should be used to release memory used by SomeClass instance? By default delete with same parameter as new is used. And some compilers (do not remember what exactly) produces a warning if it's missing. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
