2010-01-03 00:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* src/vm/fm.c
    + Overriding some additional C++ memory allocation operators
      to cover the full set required by QT, according to this document:
         http://doc.trolltech.com/4.5/qt-performance.html#alternative-memory-allocation
    ; Please report if it causes problem in other areas, also 
      retest HBQT memory allocation after change.
This commit is contained in:
Viktor Szakats
2010-01-02 23:29:42 +00:00
parent 7806656acb
commit 2d3bb88d50
2 changed files with 30 additions and 2 deletions

View File

@@ -17,6 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-01-03 00:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
+ Overriding some additional C++ memory allocation operators
to cover the full set required by QT, according to this document:
http://doc.trolltech.com/4.5/qt-performance.html#alternative-memory-allocation
; Please report if it causes problem in other areas, also
retest HBQT memory allocation after change.
2010-01-03 00:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
! Fixed to not display "Warning, memory allocated but not released"

View File

@@ -1409,13 +1409,33 @@ HB_BOOL hb_xtraced( void )
}
#if defined( __cplusplus ) && defined( HB_FM_STATISTICS )
void * operator new[]( size_t nSize )
{
return hb_xgrab( nSize );
}
void * operator new( size_t nSize )
{
return hb_xgrab( nSize );
}
void operator delete( void * p )
void operator delete[]( void * ptr )
{
hb_xfree( p );
hb_xfree( ptr );
}
void operator delete[]( void * ptr, size_t )
{
hb_xfree( ptr );
}
void operator delete( void * ptr )
{
hb_xfree( ptr );
}
void operator delete( void * ptr, size_t )
{
hb_xfree( ptr );
}
#endif