... que imprime información de seguimiento en la consola.
Se verifica si pItem es nulo. Si es así, se crea un nuevo objeto PHB_ITEM utilizando hb_itemNew(NULL).
Si pItem ya existe y es un objeto complejo (verificado con HB_IS_COMPLEX(pItem)), se llama a hb_itemClear(pItem) para limpiar el objeto.
Se ...
Search found 19 matches: itemnew
Searched query: itemnew
- Mon Apr 29, 2024 6:41 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: ayuda con uso de hb_xfree
- Replies: 6
- Views: 1342
- Sun Apr 28, 2024 4:44 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: ayuda con uso de hb_xfree
- Replies: 6
- Views: 1342
Re: ayuda con uso de hb_xfree
Carlos,
> hb_itemPutCLPtr(pItem, szResult, lLen);
Ese pItem que usas es NULL ó fué creado con hb_itemNew( NULL ); ?
Si es NULL, entonces se crea uno nuevo que tienes que liberar. Si pItem no es NULL, el que tendrás que liberar es pItem.
> hb_itemPutCLPtr(pItem, szResult, lLen);
Ese pItem que usas es NULL ó fué creado con hb_itemNew( NULL ); ?
Si es NULL, entonces se crea uno nuevo que tienes que liberar. Si pItem no es NULL, el que tendrás que liberar es pItem.
- Wed Mar 10, 2021 2:11 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Memory Leak - Richedit
- Replies: 29
- Views: 6730
Re: Memory Leak - Richedit
Pregunta:
SetResDebug devuelve la fuga de memoria o de recursos?
Lo digo porque una fuga de memoria es cuando hacemos un hb_xgrab o un hb_itemNew y no se libera.
Para esto último Harbour está preparado solo hay que crear las librerías de Harbour con estadísticas, realmente solo afecta a hbvm.lib y a ...
SetResDebug devuelve la fuga de memoria o de recursos?
Lo digo porque una fuga de memoria es cuando hacemos un hb_xgrab o un hb_itemNew y no se libera.
Para esto último Harbour está preparado solo hay que crear las librerías de Harbour con estadísticas, realmente solo afecta a hbvm.lib y a ...
- Wed Mar 10, 2021 12:04 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Memory Leak - Richedit
- Replies: 29
- Views: 6730
Re: Memory Leak - Richedit
Pregunta:
SetResDebug devuelve la fuga de memoria o de recursos?
Lo digo porque una fuga de memoria es cuando hacemos un hb_xgrab o un hb_itemNew y no se libera.
Para esto último Harbour está preparado solo hay que crear las librerías de Harbour con estadísticas, realmente solo afecta a hbvm.lib y a ...
SetResDebug devuelve la fuga de memoria o de recursos?
Lo digo porque una fuga de memoria es cuando hacemos un hb_xgrab o un hb_itemNew y no se libera.
Para esto último Harbour está preparado solo hay que crear las librerías de Harbour con estadísticas, realmente solo afecta a hbvm.lib y a ...
- Thu Feb 04, 2021 9:56 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: problemas al linkear
- Replies: 6
- Views: 707
problemas al linkear
... Error: Unresolved external '_hb_xrealloc' referenced from X:\PROYECTOS\TEST\MARIA\LIB\DOLPHIN.LIB|function
Error: Unresolved external '_hb_itemNew' referenced from X:\PROYECTOS\TEST\MARIA\LIB\DOLPHIN.LIB|function
Error: Unresolved external '_hb_param' referenced from X:\PROYECTOS\TEST\MARIA ...
Error: Unresolved external '_hb_itemNew' referenced from X:\PROYECTOS\TEST\MARIA\LIB\DOLPHIN.LIB|function
Error: Unresolved external '_hb_param' referenced from X:\PROYECTOS\TEST\MARIA ...
- Sat Jan 06, 2018 4:08 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: access to window via its :hwnd
- Replies: 10
- Views: 2088
Re: access to window via its :hwnd
... for prod
procedure hb_gt_gui_default
return
*****************************************************
function Main()
// local hItem1 := ItemNew( "Hello world!-billy/don" )
// local hItem2 := ItemNew( "From a Harbour DLL-billy/don" )
local hItem1
local hItem2
local marray ...
procedure hb_gt_gui_default
return
*****************************************************
function Main()
// local hItem1 := ItemNew( "Hello world!-billy/don" )
// local hItem2 := ItemNew( "From a Harbour DLL-billy/don" )
local hItem1
local hItem2
local marray ...
- Fri Jan 05, 2018 11:34 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: access to window via its :hwnd
- Replies: 10
- Views: 2088
Re: access to window via its :hwnd
... create a dialog in the calling program( babu.prg ) and added 1 control to it.
then, I pass to the .dll ( babudll.prg ) the following.
hItem1 := ItemNew( odialog:hwnd )
hItem2 := 'Dialog Handle Passed'
HbDLLEntry2( "TEST3", hItem1, hitem2 )
***************
within babudll.prg, the handle is ...
then, I pass to the .dll ( babudll.prg ) the following.
hItem1 := ItemNew( odialog:hwnd )
hItem2 := 'Dialog Handle Passed'
HbDLLEntry2( "TEST3", hItem1, hitem2 )
***************
within babudll.prg, the handle is ...
- Thu Jun 22, 2017 8:10 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Al usar hb_itemDoC el aplicativo deja de funcionar
- Replies: 2
- Views: 575
Al usar hb_itemDoC el aplicativo deja de funcionar
... se agradece cualquier ayuda.
#pragma BEGINDUMP
static void seleccion_menu( GtkWidget *widget, gpointer pdata )
{
int i;
PHB_ITEM pArg1 = hb_itemNew( NULL );
PHB_ITEM pArg2 = hb_itemNew( NULL );
PHB_ITEM pArg3 = hb_itemNew( NULL );
PHB_ITEM itemReturn = hb_itemNew( NULL );
for( i = 0; i ...
#pragma BEGINDUMP
static void seleccion_menu( GtkWidget *widget, gpointer pdata )
{
int i;
PHB_ITEM pArg1 = hb_itemNew( NULL );
PHB_ITEM pArg2 = hb_itemNew( NULL );
PHB_ITEM pArg3 = hb_itemNew( NULL );
PHB_ITEM itemReturn = hb_itemNew( NULL );
for( i = 0; i ...
- Wed Aug 31, 2016 8:00 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: create a harbour dll containing functions to be executed
- Replies: 23
- Views: 5288
Re: create a harbour dll containing functions to be executed
Perry,
> does each parm have to be the same data type in all functions?
They have to be Harbour "items", thats why you need to use the function ItemNew():
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22835&start=15
> Also, I am looking at the samples in FWH64 v1605 and the buildhd.bat ...
> does each parm have to be the same data type in all functions?
They have to be Harbour "items", thats why you need to use the function ItemNew():
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22835&start=15
> Also, I am looking at the samples in FWH64 v1605 and the buildhd.bat ...
- Thu Aug 28, 2014 9:27 pm
- Forum: FiveLinux / FiveDroid (Android)
- Topic: Retorno de matriz de C a Harbour
- Replies: 1
- Views: 1663
Re: Retorno de matriz de C a Harbour
... given by Antonio Linares
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapiitm.h>
HB_FUNC( FESTRUCTURA_TABLA )
{
PHB_ITEM pArray = hb_itemNew( NULL );
hb_arrayNew( pArray, 4 ); // 4 elements
hb_arraySetC( pArray, 1, "Hello" ); // a string
hb_arraySetNL( pArray, 2, 123 ); // a number
hb ...
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapiitm.h>
HB_FUNC( FESTRUCTURA_TABLA )
{
PHB_ITEM pArray = hb_itemNew( NULL );
hb_arrayNew( pArray, 4 ); // 4 elements
hb_arraySetC( pArray, 1, "Hello" ); // a string
hb_arraySetNL( pArray, 2, 123 ); // a number
hb ...
- Thu Aug 28, 2014 9:27 pm
- Forum: FiveLinux / FiveDroid (Android)
- Topic: Return to Harbour matrix C
- Replies: 1
- Views: 1785
Re: Return to Harbour matrix C
... entregado por Antonio Linares
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapiitm.h>
HB_FUNC( FESTRUCTURA_TABLA )
{
PHB_ITEM pArray = hb_itemNew( NULL );
hb_arrayNew( pArray, 4 ); // 4 elements
hb_arraySetC( pArray, 1, "Hello" ); // a string
hb_arraySetNL( pArray, 2, 123 ); // a ...
#pragma BEGINDUMP
#include <hbapi.h>
#include <hbapiitm.h>
HB_FUNC( FESTRUCTURA_TABLA )
{
PHB_ITEM pArray = hb_itemNew( NULL );
hb_arrayNew( pArray, 4 ); // 4 elements
hb_arraySetC( pArray, 1, "Hello" ); // a string
hb_arraySetNL( pArray, 2, 123 ); // a ...
- Fri Jan 04, 2013 9:55 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problemas al crear la libreria TWBROWSE
- Replies: 6
- Views: 3283
Problemas al crear la libreria TWBROWSE
... 0 ;
#ifndef __HARBOUR__
WORD wLen = _VARRAYLEN( pAtext );
CLV_WORD lJustify;
#else
WORD wLen = hb_arrayLen( pAtext );
PHB_ITEM uElem = hb_itemNew( NULL );
#endif
WORD wType, wcLen;
LONG lValue;
char * cValue;
HPEN hOldPen, hPen;
BITMAP bmp;
WORD wRow, wCol;
LONG lColor ;
HBRUSH ...
#ifndef __HARBOUR__
WORD wLen = _VARRAYLEN( pAtext );
CLV_WORD lJustify;
#else
WORD wLen = hb_arrayLen( pAtext );
PHB_ITEM uElem = hb_itemNew( NULL );
#endif
WORD wType, wcLen;
LONG lValue;
char * cValue;
HPEN hOldPen, hPen;
BITMAP bmp;
WORD wRow, wCol;
LONG lColor ;
HBRUSH ...
- Sat Jul 09, 2011 2:11 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
- Replies: 7
- Views: 3091
Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
... 0 ;
#ifndef __HARBOUR__
WORD wLen = _VARRAYLEN( pAtext );
CLV_WORD lJustify;
#else
WORD wLen = hb_arrayLen( pAtext );
PHB_ITEM uElem = hb_itemNew( NULL );
#endif
WORD wType, wcLen;
LONG lValue;
char * cValue;
HPEN hOldPen, hPen;
BITMAP bmp;
WORD wRow, wCol;
LONG lColor ;
HBRUSH ...
#ifndef __HARBOUR__
WORD wLen = _VARRAYLEN( pAtext );
CLV_WORD lJustify;
#else
WORD wLen = hb_arrayLen( pAtext );
PHB_ITEM uElem = hb_itemNew( NULL );
#endif
WORD wType, wcLen;
LONG lValue;
char * cValue;
HPEN hOldPen, hPen;
BITMAP bmp;
WORD wRow, wCol;
LONG lColor ;
HBRUSH ...
- Wed Nov 18, 2009 4:30 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Descubrir dispositivos via Bluetooth
- Replies: 5
- Views: 1553
Re: Descubrir dispositivos via Bluetooth
... malloc( qs_len );
HANDLE lphLookup;
INT nError;
BTH_ADDR result;
char buf[40] = {0};
DWORD bufsize = sizeof(buf);
PHB_ITEM aTemp = hb_itemNew( NULL );
PHB_ITEM aNew = hb_itemArrayNew( 0);
GUID guid = SVCID_HOSTNAME;
hb_arrayNew( aTemp, 5 );
lphLookup = (HANDLE) hb_parnl(1 ...
HANDLE lphLookup;
INT nError;
BTH_ADDR result;
char buf[40] = {0};
DWORD bufsize = sizeof(buf);
PHB_ITEM aTemp = hb_itemNew( NULL );
PHB_ITEM aNew = hb_itemArrayNew( 0);
GUID guid = SVCID_HOSTNAME;
hb_arrayNew( aTemp, 5 );
lphLookup = (HANDLE) hb_parnl(1 ...
- Fri Nov 06, 2009 12:35 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Compilar Fast Report
- Replies: 3
- Views: 2045
Re: Compilar Fast Report
... HB_FUNC( INITENGINE )
{
proc_IP InitEng = (proc_IP)GetProcAddress((HMODULE)hb_parnl(1) , "InitEngine");
if (InitEng)
{
InitEng(1, &hb_itemNew);
InitEng(2, &hb_itemRelease);
InitEng(3, &hb_itemPutNI);
InitEng(4, &hb_itemGetNI);
InitEng(6, &hb_dynsymGetSymbol);
InitEng(10, &hb ...
{
proc_IP InitEng = (proc_IP)GetProcAddress((HMODULE)hb_parnl(1) , "InitEngine");
if (InitEng)
{
InitEng(1, &hb_itemNew);
InitEng(2, &hb_itemRelease);
InitEng(3, &hb_itemPutNI);
InitEng(4, &hb_itemGetNI);
InitEng(6, &hb_dynsymGetSymbol);
InitEng(10, &hb ...