tor 2003-03-06 klockan 12.47 skrev Robert Collins: > As a side effect, I may have broken FTP, due to FTP's use of a > cbdataFree handler - which really doesn't work well with C++, as the > compiler may zero objects after delete is called, or otherwise tramp on > the memory.
Ug.. if you break cbdataFree handlers then quite many things will fail, and making safe cbdata constructs becomes significantly harder.. In C++ the cbdataFree handler should be called before delete. On the other hand, we can probably get rid of cbdataFree handlers entirely in C++ as there is the delete operation which serves the same purpose. Only need a construct where delete is deferred until the last reference has gone away. -- Henrik Nordstrom <[EMAIL PROTECTED]> MARA Systems AB, Sweden
