francesco perillo wrote: > > Ok, just for trying to understand how it is possible to proceed and to > validate the idea I did some tests... I was able to remove a GPFs > changing some add* functions. > It was a manual work and I strongly believe it can't be done manually ! > > Just for reference I post here one of this changed functions, for code > review: > > HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR ) > { > QGC_POINTER_QMainWindow * q; > QGC_POINTER * p; > > HB_TRACE( HB_TR_DEBUG, ("QMAINWINDOW_ADDTOOLBAR" ) ); > > q = ( QGC_POINTER_QMainWindow * ) hb_parptrGC( hbqt_gcFuncs(), 1 ); > p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 3 ); > > if ( p && p->ph && q && q->ph ) > { > HB_TRACE( HB_TR_DEBUG, ( "QT_QMAINWINDOW_ADDTOOLBAR() Qt oject: > %p is attached to: %p", (void *) p->ph, (void *) q->ph) ); > p->bNew = HB_FALSE; > if ( q && q->ph ) > ( q->ph )->addToolBar( ( Qt::ToolBarArea ) hb_parni( 2 ), ( ( > QToolBar *) p->ph )); > else > HB_TRACE( HB_TR_DEBUG, ( "F=QT_QMAINWINDOW_ADDACTION FP=( q->ph > )->addAction( xx ); q->ph is NULL" )); > } > } >
If we go this way, i.e., manually changing the code, then probably we can never finish, nor anybody will take interest in. There can be thousands of combinations like this. We should wait until Przemek commits detachable GC pointers. ----- enjoy hbIDEing... Pritpal Bedi http://hbide.vouch.info/ -- View this message in context: http://n2.nabble.com/Pritpal-and-Vikto-please-test-this-generator-tp4900883p4910638.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour