Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 cannot use object _x after deleting it

open
nobody
None
5
2010-10-07
2010-10-07
Alexey Sokirko
No

File encoder.cpp:300
cannot use object _x after deleting it
if (!_x->empty())
x.push_back(_x);
else
delete _x;

_x->set_thread_id(line % thread_num);

Discussion