FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Pocket PC Arreglo importante!
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Fri Oct 20, 2006 09:16 AM
Por favor a帽adir este c贸digo al PRG principal de vuestra aplicaci贸n:
#pragma BEGINDUMP

#include <hbapi.h>
#include <windows.h>

LPSTR WideToAnsi( LPWSTR );

HB_FUNC( GETWINDOWTEXT )
{
   HWND hWnd = ( HWND ) hb_parnl( 1 );
   int iLen = GetWindowTextLength( hWnd );
   LPWSTR pText = ( LPWSTR ) hb_xgrab( ( iLen * 2 ) + 2 );
   LPSTR pAnsi;
   
   GetWindowText( hWnd, pText, iLen + 1 );
   
   pAnsi = WideToAnsi( pText );
   hb_retc( pAnsi );
   hb_xfree( pAnsi );
   hb_xfree( pText );
}	

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Arreglo importante!
Posted: Fri Oct 20, 2006 09:30 AM

Antonio,

Q reporta este arreglo ? (tema de perdida de memoria ?)

Gracias.

Salutacions, saludos, regards

"...programar es f谩cil, hacer programas es dif铆cil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Fri Oct 20, 2006 10:28 AM

Carles,

Se estaba corrompiendo la memoria! :shock: y Harbour no pod铆a liberarla luego. Ahora esta correcto.

De todas formas vamos a publicar en breve un nuevo build en el que se ha hecho una revisi贸n a fondo del consumo de memoria.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 670
Joined: Wed Oct 19, 2005 06:41 PM
Arreglo importante!
Posted: Fri Oct 20, 2006 01:46 PM

Antonio
tengo Fwppc con las librerias de estas fechas

Fivece.lib 01/09/2006
fivecec.lib 30/08/2006

el parche que publicas me aplicaria a la version que yo tengo ?
Saludos

Att

Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Sat Oct 21, 2006 06:09 PM

Wilson,

S铆, tienes que incluirlo.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 47
Joined: Mon May 29, 2006 09:04 PM
Arreglo importante!
Posted: Mon Oct 23, 2006 05:12 PM
Me dio problemas al compilar.. sera q estoy haciendo algo mal? :-) (recien termine de instalar la actualizacion de fwppc)




Compiling...
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Compiling 'PRUEBA2.prg' and generating preprocessed output to 'PRUEBA2.ppo'...

Lines 179, Functions/Procedures 4
Generating C source output to 'PRUEBA2.c'... Done.
PRUEBA2.c
Microsoft (R) Incremental Linker Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

PRUEBA2.obj
c:\fwppc\lib\FiveCE.lib c:\fwppc\lib\FiveCEC.lib
c:\harbour_CE\lib\rtl.lib
c:\harbour_CE\lib\vm.lib
c:\harbour_CE\lib\gtwin.lib
c:\harbour_CE\lib\lang.lib
c:\harbour_CE\lib\macro.lib
c:\harbour_CE\lib\rdd.lib
c:\harbour_CE\lib\dbfntx.lib
c:\harbour_CE\lib\dbfcdx.lib
c:\harbour_CE\lib\dbffpt.lib
c:\harbour_CE\lib\hbsix.lib
c:\harbour_CE\lib\debug.lib
c:\harbour_CE\lib\common.lib
c:\harbour_CE\lib\pp.lib
c:\harbour_CE\lib\codepage.lib
c:\vce\lib\arm\coredll.lib
c:\vce\lib\arm\corelibc.lib
c:\vce\lib\arm\aygshell.lib
c:\vce\lib\arm\ws2.lib
c:\vce\lib\arm\mfcce400.lib
c:\vce\lib\arm\ole32.lib
c:\vce\lib\arm\ceshell.lib
c:\vce\lib\arm\commctrl.lib
c:\vce\lib\arm\wininet.lib
FiveCEC.lib(GETTEXT.obj) : error LNK2005: "void __cdecl HB_FUN_GETWINDOWTEXT(void)" (?HB_FUN_GETWINDOWTEXT@@YAXXZ) already defined in PRUEBA2.obj
FiveCEC.lib(GETTEXT.obj) : warning LNK4006: "void __cdecl HB_FUN_GETWINDOWTEXT(void)" (?HB_FUN_GETWINDOWTEXT@@YAXXZ) already defined in PRUEBA2.obj; second definition ignored
Creating library PRUEBA2.lib and object PRUEBA2.exp
PRUEBA2.exe : fatal error LNK1169: one or more multiply defined symbols found
* Application successfully built
Luis Santeliz
M贸vil SoftWare, C.A.
---------------------------------------------
MySQL DBA,
MySQL Server Performance Tunning,
DPxBase, FiveWin, Java,
Linux Redhat, Windows

Caracas Venezuela
luissanteliz@cantv.net
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Mon Oct 23, 2006 08:42 PM

Luis,

Hay que extraer este m贸dulo previamente:

lib /remove:objcec\GETTEXT.obj fivecec.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 47
Joined: Mon May 29, 2006 09:04 PM
Arreglo importante!
Posted: Tue Oct 24, 2006 03:52 PM
ahora me da otros errores :-)

FiveCE.lib(MGET.obj) : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_MGETREPLACE(void)" (?HB_FUN_MGETREPLACE@@YAXXZ)
FiveCE.lib(MGET.obj) : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_GETWINTXTLENGHT(void)" (?HB_FUN_GETWINTXTLENGHT@@YAXXZ)
FiveCE.lib(MGET.obj) : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_MGETLINE(void)" (?HB_FUN_MGETLINE@@YAXXZ)
Luis Santeliz
M贸vil SoftWare, C.A.
---------------------------------------------
MySQL DBA,
MySQL Server Performance Tunning,
DPxBase, FiveWin, Java,
Linux Redhat, Windows

Caracas Venezuela
luissanteliz@cantv.net
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Tue Oct 24, 2006 04:25 PM

Luis,

Vamos a publicar un nuevo build de FWPPC en s贸lo unos dias. En cuanto salga lo tendr谩s y as铆 no tienes que modificar nada.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 47
Joined: Mon May 29, 2006 09:04 PM
Arreglo importante!
Posted: Tue Oct 24, 2006 05:29 PM

vale, vale.. yo espero; de momento lo he solucionado agregando las funciones q faltan en blanco.. muchas gracias por su atencion Don Antonio.

Luis Santeliz
M贸vil SoftWare, C.A.
---------------------------------------------
MySQL DBA,
MySQL Server Performance Tunning,
DPxBase, FiveWin, Java,
Linux Redhat, Windows

Caracas Venezuela
luissanteliz@cantv.net
Posts: 139
Joined: Sun Nov 06, 2005 06:14 PM
Arreglo importante!
Posted: Mon Oct 30, 2006 10:48 AM

antonio yo me quede sin actualizaciones en septiembre ( al caducar la version 1 ) ... si es un fix importante tendria que aplicarlo pero me salen los errores arriba indicados y no tengo manera de acceder a las ultimas actualizaciones ... pondras un fix completo para la version 1 o debemos quedarnos com estamos ?

Jose Luis Paraj贸n

Asturias
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Mon Oct 30, 2006 11:32 AM

Jose Luis,

No es s贸lo eso. El nuevo build de FWPPC que hemos publicado ya, usa el Harbour m谩s reciente (46.2) y ha sido redise帽ado interiormente para optimizar el uso de la memoria.

Adem谩s se han cambiado clases importantes, para hacerlo funcionar mejor. Y del Harbour anterior a este nuevo existen muchas diferencias.

No hay un parche aislado que se pueda publicar, sino lo har铆amos.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 139
Joined: Sun Nov 06, 2005 06:14 PM
Arreglo importante!
Posted: Mon Oct 30, 2006 11:43 AM

entonces 驴 lo dejo estar ? ... ( de momento no hemos tenido problemas, y actualizarse a la nueva version no se plantea hasta tener mas parque de aplicaciones instaladas .. )
Gracias por tu atencion

Jose Luis Paraj贸n

Asturias
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Arreglo importante!
Posted: Mon Oct 30, 2006 03:15 PM

Jose Luis,

S铆, puedes dejarlo como est谩. Solo en aplicaciones que funcionan muchas horas seguidas es donde puede notarse el problema de la memoria, que ya est谩 solucionado.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion