Search found 84 matches: xgrab

Return to advanced search

Re: Ayuda C++ : SOLUCIONADO

// hb_parc(3) -> "c:\temp\salida.pdf" // la impresora por defecto no pueder ser PDF24 O PDFCREATOR (VIRTUALES) HB_FUNC_STATIC( STARTDOC ) { HDC hDC = (HDC) hb_parnl(1) ; LPDOCINFO sDoc = NULL; BOOL Result = FALSE ; if (hDC ) { sDoc = (LPDOCINFO) hb_xgrab(sizeof(DOCINFO)); sDoc->cbSiz...
by russimicro
Fri Apr 19, 2024 9:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda C++ : SOLUCIONADO
Replies: 12
Views: 325

Re: xbrowse No existe el metodo: LREADONLY

Hola Antonio. Estimado Albeiro, Prueba a comentar estas dos líneas para solucionar los GPFs: // if ( userList.m_ArrayUsers ) // hb_xfree( userList.m_ArrayUsers ); No se ve que llames a hb_xgrab() en tu código, luego esa llamada a hb_xfree() está de más. Voy a hacer lo que me cometas. Igual voy a pos...
by albeiroval
Mon Mar 04, 2024 3:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse No existe el metodo: LREADONLY
Replies: 16
Views: 472

Re: xbrowse No existe el metodo: LREADONLY

Estimado Albeiro,

Prueba a comentar estas dos líneas para solucionar los GPFs:
// if ( userList.m_ArrayUsers )
// hb_xfree( userList.m_ArrayUsers );

No se ve que llames a hb_xgrab() en tu código, luego esa llamada a hb_xfree() está de más.
by Antonio Linares
Mon Mar 04, 2024 5:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse No existe el metodo: LREADONLY
Replies: 16
Views: 472

Re: read a big xml file

I got error 9600

hb_xgrab can't allocate memory

xml file has 10GB

best regards
KAJOT
by kajot
Sat Jun 24, 2023 6:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: read a big xml file
Replies: 11
Views: 719

Re: New FWH 23.04

Dear Tim,

This is the right code:
BYTE * bBuffer = ( BYTE * ) hb_xgrab( BUFSIZE );

but you may have got a warning, not an error

Just curiosity: why have you recompiled profile.c ?
by Antonio Linares
Tue May 02, 2023 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New FWH 23.04
Replies: 13
Views: 817

Re: *** Curso de C para programadores Harbour.

Volviendo al curso, como sabeis consta de: * Un manual que iré entregando por temas. * Un foro, que muy amablemente, nos ha hecho Cristóbal Navarro. En el foro iremos haciendo preguntas y respondiéndolas y donde pondremos muchos ejemplos. Al curso podrá apuntarse todo el mundo ya que no hay asistenc...
by xmanuel
Tue Apr 06, 2021 7:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: *** Curso de C para programadores Harbour.
Replies: 141
Views: 18394

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 ...
by karinha
Wed Mar 10, 2021 2:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Memory Leak - Richedit
Replies: 29
Views: 3724

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...
by xmanuel
Wed Mar 10, 2021 12:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Memory Leak - Richedit
Replies: 29
Views: 3724

problemas al linkear

Hola. usando harbour y Fwh la ultima. Me arroja estos errores: [1]:iLink32.Exe -Gn -q -aa -Tpe -x @testMaria.bcl Error: Unresolved external 'WinMain' referenced from X:\HARB\BCC7\LIB\C0W32.OBJ Error: Unresolved external '_hb_vmProcessSymbols' referenced from X:\PROYECTOS\TEST\MARIA\OBJ\MARIA.OBJ Err...
by goosfancito
Thu Feb 04, 2021 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: problemas al linkear
Replies: 6
Views: 449

XML read, memory allocation error

Hello Everyone, We are using XML reader to process large amount XML messages. We are receiving the error below, how do I resolve this issue? /*********************************************** Application Internal Error - C:\winapps\vessel\xmlreader.exe Terminated at: 2019-06-09 08:54:10 Unrecoverable ...
by cdmmaui
Thu Jun 20, 2019 5:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML read, memory allocation error
Replies: 2
Views: 600

Re: Ayuda DLL

Buenos días Antonio, ahoro me presenta estos errores. Proyecto: Kept5, Entorno: BorlandDLL: [1]:iLink32.Exe -Tpd @Kept5.bcl Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Error: Unresolved external '_hb_xfree' referenced from P:\32BITS\FWH\LIB\FIVEHC.LIB|XHB Error: Unresolved external '...
by ricardog
Wed Aug 30, 2017 5:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6358

Re: Creando Estructuras TypeDef Struct como en C

Prueba a hacer esto:

pMem = hb_xgrab( 32 )

oFiscal:ImprimirTextoFiscal( pMem, "HOLA" )

y comprueba si sigue dando el argument error

#pragma BEGINDUMP

#include <hbapi.h>

HB_FUNC( HB_XGRAB )
{
hb_retnll( ( HB_LONGLONG ) hb_xgrab( hb_parnl( 1 ) ) );
}

#pragma ENDDUMP
by Antonio Linares
Fri Jun 30, 2017 5:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creando Estructuras TypeDef Struct como en C
Replies: 22
Views: 2786

Re: Ejecutar con un bloque de código una instrucción

Prueba a cambiar hb_gcAlloc() por hb_xgrab() y hb_retclenAdopt() por hb_retclen() en los fuentes de Dolphin
by Antonio Linares
Sun Feb 28, 2016 7:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejecutar con un bloque de código una instrucción
Replies: 17
Views: 2657

Re: Huge C static memory allocation

Enrico,

Why don't you allocate memory dinamically in runtime using hb_xgrab() ?

It is the right way to do it or you run out of stack memory
by Antonio Linares
Sun Oct 11, 2015 6:10 am
 
Forum: Off Topic / Otros temas
Topic: Huge C static memory allocation
Replies: 7
Views: 1239

Re: Valor por defecto en una DATA de una clase

Creo que esa también hace una nueva reserva de memoria, he mirado el código fuente de la función y fíjate: /* Internal API, not standard Clipper *//* UnShare string buffer of given string item */PHB_ITEM hb_itemUnShareString( PHB_ITEM pItem ){   HB_TRACE( HB_TR_DEBUG, ( "hb...
by xmanuel
Tue Sep 15, 2015 9:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Valor por defecto en una DATA de una clase
Replies: 21
Views: 4591
Next

Return to advanced search