Le 2011-11-12 à 11:53:00, Mathieu Bouchard a écrit :
But a better fix might be to not use malloc at all for those things, unless there's a good reason to use it. Less opportunities for bugs.
also, new/delete makes it unnecessary to force pointer casting, and if you don't try to force it, then the compiler will complain about the bug (trying to assign a cond pointer to a mutex pointer variable).
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC