[flext] Overriding delete operator

Thomas Grill gr at grrrr.org
Sat Jun 23 13:07:47 CEST 2012


Hi Arshia,
sorry for the delay, i was busy with finishing my PhD - see http://grrrr.org/drthesis-2012 .

The overriding of the constructor and destructor can be avoided by defining the FLEXT_USE_CMEM preprocessor symbol which i recommend when using the STL.
Please let me know if this helps!
all the best,
Thomas

Am 19.06.2012 um 11:50 schrieb Arshia Cont:

> Hi list,
> 
> It seems to me that Flext objects, by default, attempt to call a delete operator that is owned by Flext even if they shouldn't:
> 
> 0   com.cycling74.Max             	0x00033889 sysmem_freeptr_imp + 13
> 1   com.cycling74.MaxAPI          	0x017631c2 sysmem_freeptr + 34
> 2   antescofo~                    	0x83bf6d10 flext_root_multi::operator delete(void*) + 24
> 3   antescofo~                    	0x83be5ba7 std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned long) + 21
> 
> Here, the delete is called by STD but flext delete is called instead… .
> 
> If it was in my code, I would have called with correct namespace but it's not!
> 
> Any way to override this?
> 
> Arshia Cont
> 
> 
> 
> 
> _______________________________________________
> http://grrrr.org/ext/flext
> 
> flext mailing list
> flext at grrrr.org
> http://grrrr.org/cgi-bin/mailman/listinfo/flext





More information about the flext mailing list