Talk:FileOpen (C++)

From RAD Studio Code Examples
Jump to: navigation, search

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