Talk:FileOpen (C++)
Don't use std::auto_ptr<> to store arrays, for it won't release them correctly. auto_ptr<> uses operator delete to free, whereas arrays must be with operator delete[]. (This error is widespread across the C++ examples.) --Moritz Beutel