topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
BBDD en mysql
|
¿Cuantas bases de datos tienes abiertas a la vez?
Si solo abres una a cada vez, puedes tener tantas como te quepan en el disco. Para mi gusto no es mala estrategia distribuir todos los registros entre muchas bases de datos. Así sólo se abre la que se va a utilizar en ese momento y los demás registros se mantienen a salvo en sus bases cerradas. La teoría informática recomienda abrir una base de datos sólo cuando se va a utilizar. La dificultad podría estar en saber que bases de datos tienes que abrir en cada momento.
También depende de cuantos registros componen cada base de datos. En teoría FWH puede administrar millones de registros sin el mayor problema.
Por otra parte, cada programador tiene sus propios gustos y preferencias. Muchos preferirán una base de datos por año en lugar de 12. Por capacidad del FWH pienso que no es problema: si cabe en el disco y en la memoria fwh los puede gestionar.
|
BBDD en mysql
|
Amigo por que no le agregas a cada tabla de movimiento un campo llamado periodo
como este ejemplo
Periodo empresa
02-2009 xxxxxx
02-2009 qqqqqq
03-2009 xxxxxx
03-2009 qqqqqq
algo asi
saludos
|
BBDD en mysql
|
amigo, como decian por ahi no mates pulgas a cañonazos
en dbf era valido hacer eso, de hecho yo lo hacia, tenia un directorio por empresa, cada una con sus dbf y en clipper direccionabas a tal o cual directorios, ahora bien en SQL, solo creas una sola base de datos (para todas las dbf de todos los directorios, en tu caso todos los meses, etc) , osea pones en una tabla, todos los sueldo de todo el mundo, de todos los meses, que si en clipper te pareceria lento y gigantesco en sql sera muy rapido, recuerda que el sql es sumamente poderoso y con un select * from sueldos y le pones la condicion sera instantaneo, osea no pretendas trabajar en sql con metodologia clipper, seria algo tan tonto como abrir una tabla sql y recorrerla registro por registro e ir comparando, etc,etc, dbf es dbf y sql es sql
alejandro
|
BBDD en mysql
|
recordemos que en ambiente dbf es valido referirse a base de datos a un simple dbf, pero en sql, access, etc, base de datos es un conjunto de tablas, un dbf es una tabla, ahora bien como te dije creas una base de datos para todo tu sistema y creas una tabla sueldos, con un registro por ej empresa, mes, ano, empleado, sueldo
con una primary key empresa, supongamos son 12 meses, 300 ermpresas, 100 empleados cada uno, cobran semanal, bla bla serian unos 360mil registros por año que para sql es un chiste, ademas es un registro pequeño en bytes por lo que ocuparpoco espacio, luego harias una consulta select * from sueldos where empresa="xx" etc etc, sera instantaneo y trabajas con el query resultante
es una pesima estrategia decir que vas a crear 3600 bases de datos o 3600 tablas dentro de la base de datos, en fin, un administrador de SQL no te dejaria ni tocar el servidor antes de asesinarte, jajaja
|
BCC 5.5.1 vs 5.8
|
Hi all,
no problem at all, FWH works great, just a curiosity:
I am seeing on the xharbour.org website that 2 xharbour binaries are available now,
the 1st for BCC 5.5.1 and the 2nd for BCC 5.8.
I always used BCC 5.5.1 but I would like to know if there are advantage to use the more recent 5.8 version.
Any related experience appreciated.
|
BCC 5.5.1 vs 5.8
|
Marco,
Aparently the advantage is the existence of some header files that are not available in bcc55, but besides that we have not noticed a sensible difference, though obviously there might be internal changes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 5.5.1 vs 5.8
|
Antonio,
the release are on xharbour and yours in this website ( December 2009) [b:3prb8x9c]is pretty o[/b:3prb8x9c]ldest from the sourcecodes new release
there are important modifies make from Ron Pinkas at 17.12.2009
read this topic please <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=18311">viewtopic.php?f=3&t=18311</a><!-- l -->
I try with xharbour.exe of Xharbour.COM ( free relase) and the parameter /j namefile.hil run ok
|
BCC 5.5.1 vs 5.8
|
Silvio,
xHarbour 1.2.1 is the official published xHarbour version from its SourceForge repository:
[url:1yelakii]http://sourceforge.net/projects/xharbour/files/[/url:1yelakii]
Surely there are many changes after it, but it is up to the xHarbour dev team to publish new builds and make them available as official builds.
xharbour.com is not Borland compatible, and it is not free, afaik
|
BCC 5.5.1 vs 5.8
|
Antonio ,
do you read your private email ?
I explained to you the problem and the file RonPinkas modified
|
BCC 5.5.1 vs 5.8
|
Dear Antonio,
Why not you try ?
try to create namefile.hil with your xharbour.exe
it create it but not insert all variables
try with this file test.prg
[code=fw:3bnwn4q5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> oWnd<br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">title</span> i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"test language"</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndMain<br />retur <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">local</span> oMenu<br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Archivo"</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> i18n<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Especificar impresora"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ACTION</span> PrinterSetup<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">(</span> <span style="color: #ff0000;">" Establecer la Configuración de su impresora. "</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> i18n<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">MESSAGE</span> i18n<span style="color: #000000;">(</span> <span style="color: #ff0000;">" Terminar la ejecución del programa. "</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #00C800;">RETURN</span> oMenu</div>[/code:3bnwn4q5]
with your xharbour.exe it create a file sample /jitalian.hil
this :
HIL The xharbour group ˜mD pþ `þ
American English „þ ú 4 àù Ù]D Ü( (American English (ú M ¨%F (ú M ú “pDen_US YI ÿÿÿÿ
and not insert all variables
why you not try ????
instead with the release modified
it create this :
HIL The xharbour group ˜mD pþ `þ
American English „þ ú 4 àù Ù]D Ü( (American English (ú M ¨%F (ú M ú “pDen_US YI ÿÿÿÿ 10Fsdi 2006 0 13Acerca de... 0 37Visitar la web de alanit en internet 0 22Especificar impresora 0 47 Establecer la Configuración de su impresora. 0 6Salir 0 38 Terminar la ejecución del programa. 0 38Gestión de del fichero de documentos. 0 22Gestión de documentos 0 38Gestión de del fichero de documentos. 0 22Gestión de documentos 0 31Finalizar el uso del programa. 0 19Salir del programa 0 113No puede salir del programa hasta que no cierre las ventanas abiertas sobre el mantenimiento que está manejando. 0 30¿Desea finalizar el programa? 0 20Gestión de clientes 0 6First 0 5Last 0 7Street 0 5City 0
return nil
|
BCC 5.8.3
|
Hi,Is someone using this new version of Borland C++. What is your experience about this?.I tried with fivewin samples, such as xbrowse, and there is an important increase on speed.Best regads,
|
BCC 5.8.3
|
Moises,Bcc 5.83 has not been officially made available from Borland. Its just included in a demo version of a product.Its impossible that you notice a sensible speed increase, as Windows and Harbour impose the speed limit, never the C compiler. Its only in your imagination <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 5.8.3
|
Antonio:I think it has support for new proccesor extensions, and so it derives to increase of speed.Best regards,
|
BCC 5.8.3
|
Moises,I asure you that you will not notice any speed difference, because the speed is based on Windows GUI speed and in the Harbour virtual machine execution speed.Only is you use a C compiler that really uses the multiple cores of the processor, then you may notice a little difference.
|
BCC 5.8.3
|
MoisesI have been using 5.82 ( up until recently ) and there are some compatability problems going from 5.5 to 5.82.Like you .. I thought newer, better, updated .. but that is just not so. My experience has been that bcc5.5 is the defacto standard and any of the newer (turbo) C++ versions like 5.82 may not be and in this case not compatable with FWH 8.05 .. Antonio and I have already gone down that road and it was not worth the 'grief'Just my 2 cents worth.Rick Lipkin
|
BCC 5.8.3
|
Rick:Thank your for your reply.I am interested in upgrading so as to use new hardware capabilities, as 5.5 is quite old and is not going to be updated. But MS VC 98 is too old too!!.The only problems I experiended was with ANIGIT and Activex. I think Antonio can compile, al least, Activex with new version. I don´t use ANIGIF.But, regarding as compatiblility, I use Can_al five controls and the lib was compiled in 5.5 and I did not experience problems linking with 5.8.3 a lib created with 5.5.Also, I use Fast Report that has some of its code in C. I compiled without problems. Before going further, I was asking for other experiences, as from my side, I did not experience any harm and I was considering to create a version for my beta testers so as to do more tests.Best regads,
|
BCC 5.8.3
|
Moises/*The only problems I experiended was with ANIGIT and Activex. I think Antonio can compile, al least, Activex with new version. I don´t use ANIGIF.*/Antonio ran into the same problem and even when I sent him the compiler the resulting.obj was still not compatable. The only other alternative was to extract 'anigif' from the FWH libs .. I decided for future FWH library compatability .. ( i don't want to extract obj's everytime ) .. I would go back to 5.5 .. I told Antonio that the 'juice was not worth the squeeze' on 5.82 and for him to not spend any more time on me to make 5.82 work in my environment.Rick Lipkin
|
BCC 5.8.3
|
Hi,I think this issues could be fixed by Antonio, as he is a great programmer <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->. But they are not urgent, as a new release of FWH is pending with lots of new features.The important point is what are the advantages of updating BCC in terms of speed and more stable version for Vista and future versions.Best regads,
|
BCC 5.8.3
|
Can you provide a link where you can download the update of the BCCThank you
|
BCC 5.8.3
|
<!-- m --><a class="postlink" href="http://cc.codegear.com/free/cppbuilder">http://cc.codegear.com/free/cppbuilder</a><!-- m -->Regards
|
BCC 5.8.3
|
I noticed the last xHarbour cvs uses Bcc58 by default, so wouldn´t it be better that all libs and programs are also compiled with that version ?From Make_b32.bat:[code:lfjm8fd9]if "%BCCDIR%" == "" SET BCCDIR=C:\BORLAND\BCC58
[/code:lfjm8fd9]
|
BCC 5.8.3
|
Stefan,This is similar to the XP/Vista issue. Microsoft can't impose Vista when most of users are using XP <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Most of FWH users are using Borland 5.5. Should we "force" all of them to migrate to 5.83 ?
|
BCC 5.8.3
|
Antonio,[quote="Antonio Linares":3vv99192]
Most of FWH users are using Borland 5.5. Should we "force" all of them to migrate to 5.83 ?[/quote:3vv99192]no, nobody should be "forced" to use Bcc 5.83, I just was surprised the developers use it by default. I think, there must be a reason using 5.83 by default. I don´t know, if it has any advantages or disadvantages, ( I´m still using Bcc55, too <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ), but it may cause curious errors, if the versions are mixed. May be it´s an option for the future.
|
BCC 5.8.3
|
So, Anybody could ask xHarbour developers about this change?.
|
BCC 5.8.3
|
Simply, the guy who developed the new make system used BCC 5.83.EMG
|
BCC 5.8.3
|
To AllAs a former 5.82 BCC user .. I have ( generally ) found it to be compatable with any ( legacy ) lib's compiled with 5.5 .. However, is it better, faster, safer ... not that I can tell.To extract just the compiler, \lib,\include, \bin folders from Borland\Codegear .. you have to install the whole IDE which has several 'pre-requisits' .. .net framework sdk, .. about 5 'useless' componants that support the IDE .. Once you get the 'hoss' installed .. you have to just copy out the 3 folders I mentioned and use the command line parameters just like in 5.5 .. and there is a bunch of useless 'trash' in the \include folder you will never need.I make no judgements here .. I have done all of the above and ( personally ) .. I just don't think the 'juice is worth the squeeze'Rick Lipkin
|
BCC 5.8.3
|
Hi,In my opinion, it is worth triying it. As we move from FW 2.0 or from Windows 95, should be always on 5.5?. The important issue is see what are real changes and advantages of the new version.
|
BCC 6.3
|
Hola.
¿Hay fecha estimada de cuándo Fivetech usará esta última versión en vez de la 5.8.2?.
Muchas gracias.
|
BCC 6.3
|
Lucas,
¿ Y porque la quieres usar ? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
BCC 6.3
|
Lucas
Has intentado usar bcc 6.3?
Te genera algun error?
Que version estas usando de fivewin?
|
BCC 6.3
|
Yo la uso sin absolutamente ningun problema...
|
BCC 6.3
|
Carles.
Hombre, tendrá mejoras. Si no, nos hubiéramos quedado en Harbour 0.99 y BCC 5.5 <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
Para usarse FWH y Harbour deben estar compilados con dicha versión si no me equivoco.
Es estupendo que haya continuidad para este compilador, porque según indica Tim tiene problemas con MSVC.
Muchas gracias.
|
BCC 6.3
|
yo la uso desde hace mucho tiempo sin problemas, creo que habia un problema que se corrigio realizando un comentario a una linea, esta es la anotacion que tengo del caso, pero no me acuerdo donde se aplica.
[quote:1ce8vy8a]
As a note, to pacify warnings, you have to modify a line refers to definition of "UNREFERENCED_PARAMETER" to "(void)" in WINNT.H as follows:
Code: Select all Expand view
#if ! defined(lint)
#define UNREFERENCED_PARAMETER(P) (void)(P)
// #define UNREFERENCED_PARAMETER(P) (P)
[/quote:1ce8vy8a]
tambien, si tu no construyes desde el svn los binarios de xharbour, puedes usar los binarios para el 5.82 pero creo que da falla la libreria hbzip, es la unica.
salu2
|
BCC 6.3
|
Recordad que la versión 6.3 es de pago <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Y no la venden suelta si no que viene incluida en el C Builder!!! <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
|
BCC 6.3
|
sip, es cierto, la unica gratuita es la 5.5 (antiquisimo)
ni la version 5.82 menos la 6.3 son gratuitas, es mas son parte integral de c++buildex de codegear y embarcadero.
lo que se ha hecho es rebuscar entre el producto y lograr sacar el compilador c.
lo mejor es pasarse al mingw, Antonio, ya de una vez por todas no deberiamos pasar al lado oscuro,
no que no somos ni chicha ni limonada, estamos entres las sombras.
|
BCC 6.3
|
Carlos,
Esa es una decision que debe estar respaldada por una gran mayoria de usuarios de FWH y asi no generar una division drastica
Si decimos cambiar y muy pocos se cambian, habremos conseguido el efecto contrario...
|
BCC 6.3
|
Antonio, se me ocurre que en algún momento el cambio será inevitable. Si todas las versiones posteriores a Borland 5.5 son de pago, nos quedaremos en esta versión que es muy antigua. He bajado Harbour 3.0 y Mingw es su compilador y funciona muy bien. Me parece que tendrías que concientizar a tus usuarios la conveniencia de este cambio. Por supuesto esto es solo una sugerencia.
Saludos
|
BCC 6.3
|
Hola.
Actualmente se está usando la 5.8.2. Su uso no requiere ningún crack ni nada, por lo que no se está haciendo nada ilegal.
Lo lògico sería usar la versión siguiente a la 5.8.2 o un compilador que sea superior. No se si Minigw lo es o, por el contrario, todavía le queda para madurar.
|
BCC 6.3
|
lucas, el hecho de estarlo usando para un uso que no es el c++builder y que no todos tenemos el c++ builder ya nos hace caer.
lo del mingw creo es la mejor opcion y ya hace tiempo cuando se sacaron libs de fwh para este compilador se debio hacer el cambio.
|
BCC 6.3
|
No entiendo mucho de eso y menos si no mencionan que ventajas tiene el hecho de hacer el cambio.
De que nos estamos perdiendo?
Vale realmente la pena?
|
BCC 6.3
|
Carlos,
Yo creo que es mucho más sencillo actualizar BCC que sustituirlo por otro compilador.
Además, Antonio hace tiempo hizo las librerías paras Minigw y nadie lo usó, mientras que los usuarios valoraron muy positivamente el cambio de BCC 5.5.2 a 5.8.2 y, además, no se reportaron errores.
|
BCC 6.3
|
sip, ademas creo que las libs que antonio creo para mingw le faltaba soporte para activex y richedit
y nadie les hizo caso, si acaso the full algunos mas. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
en cuanto a funcionalidad no creo que halla diferencia entre usar un compilador c u otro,
yo he hecho pruebas con el bcc y el xcc (pelles c) y no hay diferencias aprobeciables tanto en compilancion
como en ejecucion del exe.
por el momento uso el 6.3 sin inconveniente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
salu2
carlos vargas
|
BCC 6.3
|
Sin duda alguna yo apostaría por MinGW, lo tenemos para 32 y 64 bit cosa que BCC no tendrá por desgracia nunca!!!
|
BCC 6.3
|
MinGW no parecia una solución atractiva unos pocos años.
Sin embargo, el compilador "oficial" (¿o debería decir preferente) de Harbour se convirtió en el MinGW y por lo tanto creemos que el mismo vnha ganando impulso.
Yo personalmente empecé a utilizar la consola MinGW en mi sistema y me gustaría ir también a su uso en aplicaciones de FW.
|
BCC 6.3
|
Porque no usar PellesC?
[url:uir31rls]http://www.smorgasbordet.com/pellesc[/url:uir31rls]
Tengo entendido es el compilador usado por xHarbour.
Saludos,
George
|
BCC 6.3
|
PellesC...
Bueno está bien, pero es un proyecto libre pero cerrado (sólo tiene el código una persona) basado en LCC...
Yo sigo pensando que el mejor es MinGW (GCC) que está disponible en todos los entornos <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
BCC 6.3
|
xmanuel,
Creo tienes razon en este caso, si PellesC depende de una sola persona, usar MinGW seria lo mas logico.
George
|
BCC 6.3
|
George,
Pelles C y MinGW no se actualizan demasiado.
BCC está muy consolidado. Y como dice Andy [quote:2u4vy3ld]Latest info, it seems that BCC 6.3 which comes bundled with Embarcadero RAD Studio XE brings some improvement to the compiler. Inappropriate codes which compilable with the lower version and even compilable with MSVS 10, are now rejected by BCC 6.3.[/quote:2u4vy3ld]
Quizás, a corto plazo se podría pasar desde BCC 5.8.2 a 6.x y luego mirar MinGW.
Porque el cambio a MinGW no es tan sencillo. Hay cosas que no funcionan y habría que depurar todos los módulos en .C de FWH. Vamos, que no es broma. Teniendo en cuenta que las actualizaciones de Harbour dan problemas, no quiero ni pensar lo que pasaría con MinGW.
|
BCC 6.3
|
Lucas,
Acabamos de publicar una versión revisada de FWH 11.08 que funciona correctamente con MinGW <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Practicamente todo va bien, a excepción de FreeImage.dll que aún no tenemos la versión en 64 bits preparada.
|
BCC 6.3
|
Hola Antonio,
¿Está disponible esa versión en el FTDN?
Acá en la oficina estamos usando BCC 5.8.2, y está en los planes cambiar de compilador C. Queremos recompilar todas las aplicaciones con la última versión de FW y Harbour, y es un buen momento para replantearnos el entorno de desarrollo, incluído el compilador C.
¿Como ves pasarnos a MinGW?
Un saludo
|
BCC 6.3
|
Carlos,
Nosotros seguimos usando el 5.82 de momento. Desde donde se puede descargar el 6.3 ?
En cuanto al MinGW el problema es que no hay casi usuarios de FWH y Harbour y MinGW, lo que haría que quien lo use este bastante "solo"... El más popular sigue siendo Borland.
FWH 11.08 tambien funciona perfectamente con Microsoft Visual C++ 2010 express (gratis), el problema es de nuevo que casi nadie lo esta usando aqui...
|
BCC 6.3
|
Antonio,
no se decirte de donde se puede bajar el 6.3, nosotros no lo usamos <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
No me preocupa tanto que no haya muchos usuarios, salvo alguna obligación particular jamás usé xHarbour, siempre use Harbour desde el primer día. Y si no hay muchos usuarios de MinGW no hay problema, siempre y cuando podamos tener soporte de FiveTech <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, que es lo que realmente me preocupa, tener aseguradas las versiones nuevas.
Coincido con Manu Expósito, tenemos en MinGW un compilador libre, con mucho soporte, actualizado, soportado en el proyecto Harbour. Si pudiésemos usarlo en lugar del vetusto BCC sería fantástico.
Otra alternativa sería la de VC++, pero la verdad es que me tira más el Software Libre.
¿Como puedo tener la versión de FW compilada con MinGW?
|
BCC 6.3
|
Carlos,
En la versión 11.08 estan incluidas las librerias para MinGW
|
BCC 6.3
|
Excelente!
En la versión 11.08 que tenía no estaban incluídas, así es que las bajamos de nuevo.
Gracias!
|
BCC 6.3
|
Se publicó una versión revisada y se incluyeron, de todas formas si las pruebas y necesitas algo, me avisas y te las reenviamos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 6.3
|
Hola Antonio,
De la página harbour-project.org se puede obtener Harbour 3.0, y tambien se puede generar a partir del SVN, pero no sé si meterme con el tag 3.0 o directamente con el TRUNK.
Ya había montado lo del SVN con el 2.1 para poder recompilarlo, y de hecho es el que estoy usando.
que Harbour me recomiendas para trabajar con MInGW?
|
BCC 6.3
|
Buenas nuevas!
Bajé el 3.0 de Harbour project, que trae soporte para varios compiladores. Ajusté los paths del buildg.bat del directorio samples, y ya compila los ejemplos básicos.
Al untentar compilar xbalpha.prg me dá los siguientes errores:
[code=fw:30fy6kz6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />??????????????????????????????????????????????????????????????????????????????<br />? FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">11.08</span> and GCC - Aug. <span style="color: #000000;">2011</span> Harbour development <span style="color: #0000ff;">power</span> ??<br />? <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2011</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span> ??<br />???????????????????????????????????????????????????????????????????????????????<br /> ?????????????????????????????????????????????????????????????????????????????<br />Compiling...<br />Harbour <span style="color: #000000;">3.0</span><span style="color: #000000;">.0</span> <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">16951</span><span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2011</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'xbalpha.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'xbalpha.ppo'</span>...<br />Lines <span style="color: #000000;">4100</span>, Functions/Procedures <span style="color: #000000;">2</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'xbalpha.c'</span>... Done.<br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x25c8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_WHEELSCROLL<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x29f8): undefined reference to<br />`HB_FUN_CVALTOSTR'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x2e78<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_NUMPICT<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x3478): undefined reference to<br />`HB_FUN_FW_VALTOEXP'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x3718<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_UCHARTOVAL<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x3be8): undefined reference to<br />`HB_FUN_FWNUMFORMAT'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x4558<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_ISBINARYDATA<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(DATABASE.o):DATABASE.c:(.data+0x888): undefined reference to<br /> `HB_FUN_NUMPICT'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span>RGROUP.o<span style="color: #000000;">)</span>:<span style="color: #000000;">RGROUP</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x2f8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB<br />_FUN_CVALTOSTR<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(RCOLUMN.o):RCOLUMN.c:(.data+0x4d8): undefined reference to `<br />HB_FUN_CVALTOSTR'</span><br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />* Link errors *<br /><br />C:\FWH-MGW\samples><br /> </div>[/code:30fy6kz6]
Al menos el error de WheelScroll solia aparecer al enlazar erroneamente una version antigua de FW con las mas nuevas.
|
BCC 6.3
|
[quote="Carlos Mora":1nfd5ccu]Hola Antonio,
De la página harbour-project.org se puede obtener Harbour 3.0, y tambien se puede generar a partir del SVN, pero no sé si meterme con el tag 3.0 o directamente con el TRUNK.
Ya había montado lo del SVN con el 2.1 para poder recompilarlo, y de hecho es el que estoy usando.
que Harbour me recomiendas para trabajar con MInGW?[/quote:1nfd5ccu]
Carlos,
Nosotros siempre usamos el TRUNK porque las betas de Harbour son tan estables, que realmente es muy dificil que pueda existir un error importante, y de aparecer no tarda ni un día en ser arreglado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 6.3
|
[quote="Carlos Mora":hl2z9w34]Buenas nuevas!
Bajé el 3.0 de Harbour project, que trae soporte para varios compiladores. Ajusté los paths del buildg.bat del directorio samples, y ya compila los ejemplos básicos.
Al untentar compilar xbalpha.prg me dá los siguientes errores:
[code=fw:hl2z9w34]<div class="fw" id="{CB}" style="font-family: monospace;"><br />??????????????????????????????????????????????????????????????????????????????<br />? FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">11.08</span> and GCC - Aug. <span style="color: #000000;">2011</span> Harbour development <span style="color: #0000ff;">power</span> ??<br />? <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2011</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span> ??<br />???????????????????????????????????????????????????????????????????????????????<br /> ?????????????????????????????????????????????????????????????????????????????<br />Compiling...<br />Harbour <span style="color: #000000;">3.0</span><span style="color: #000000;">.0</span> <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">16951</span><span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2011</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'xbalpha.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'xbalpha.ppo'</span>...<br />Lines <span style="color: #000000;">4100</span>, Functions/Procedures <span style="color: #000000;">2</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'xbalpha.c'</span>... Done.<br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x25c8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_WHEELSCROLL<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x29f8): undefined reference to<br />`HB_FUN_CVALTOSTR'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x2e78<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_NUMPICT<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x3478): undefined reference to<br />`HB_FUN_FW_VALTOEXP'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x3718<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_UCHARTOVAL<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(XBROWSE.o):XBROWSE.c:(.data+0x3be8): undefined reference to<br />`HB_FUN_FWNUMFORMAT'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span><span style="color: #0000ff;">XBROWSE</span>.o<span style="color: #000000;">)</span>:<span style="color: #0000ff;">XBROWSE</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x4558<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span><br />`HB_FUN_ISBINARYDATA<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(DATABASE.o):DATABASE.c:(.data+0x888): undefined reference to<br /> `HB_FUN_NUMPICT'</span><br />.\..\lib/fivehg.lib<span style="color: #000000;">(</span>RGROUP.o<span style="color: #000000;">)</span>:<span style="color: #000000;">RGROUP</span>.c:<span style="color: #000000;"><span style="color: #000000;">(</span></span>.<span style="color: #00C800;">data</span>+0x2f8<span style="color: #000000;">)</span>: <span style="color: #000000;">undefined</span> reference <span style="color: #0000ff;">to</span> `HB<br />_FUN_CVALTOSTR<span style="color: #ff0000;">'<br />.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib/fivehg.lib(RCOLUMN.o):RCOLUMN.c:(.data+0x4d8): undefined reference to `<br />HB_FUN_CVALTOSTR'</span><br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />* Link errors *<br /><br />C:\FWH-MGW\samples><br /> </div>[/code:hl2z9w34]
Al menos el error de WheelScroll solia aparecer al enlazar erroneamente una version antigua de FW con las mas nuevas.[/quote:hl2z9w34]
Carlos,
Aqui funciona bien. Seguramente hayamos realizado cambios con posterioridad a la fecha de las librerías publicadas. Te enviamos las librerias más recientes y buildg.bat por email <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 6.3
|
Gracias! Pruebo e informo.
|
BCC 6.3
|
Buildg xbalpha compila perfectamente con la versión que me enviaste. Gracias por la deferencia.
El browse se comporta bien. Al hacer click en el boton de la segunda columna aparece el dialogo para seleccionar el fichero, selecciono uno y al darle aceptar aparece un msginfo que dice "FWCallDll() not available yet for MinGW gcc"
Aparentemente es algo previsto, verdad? Que cosas pueden estar limitadas por la falta de FWCallDll()?
Perdona por el tostón <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
|
BCC 6.3
|
Carlos,
gracias por recordármelo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
La verdad es que no me acordaba de que esa función estaba pendiente. Esta es la importancia de que una herramienta (como MinGW) sea usada por bastantes usuarios de FWH, que hace que esté muy depurada y que no vayan a aparecer problemas imprevistos.
|
BCC 6.3
|
Yo creo que es un tema muy importante, y despues de instalar el nuevo entorno de 64 bits de Delphi/ C++, unas de las cosas es que ya no esta disponibles el compilador en linea, asi
que adiós y muchas gracias.
Si miramos hacia el futuro cercano, viendo como Harbour el soporte de Mingw es el oficial, y es el gcc de linux de toda la vida, creo aceptado que FWH intente soportarlo.
Puede ayudar esta página en esa adaptación;
<!-- m --><a class="postlink" href="http://www.willus.com/mingw/">http://www.willus.com/mingw/</a><!-- m -->
|
BCC 6.6
|
Estimado equipo de Fivetech,
¿Tenéis previsto ofrecer librerías para BCC 6.6?. COn la 5.82 en ocasiones experimentamos problemas en red local que con la nueva versión 6.6 no se producen.
Muy amables como siempre.
|
BCC 6.6
|
Up+
|
BCC 6.6
|
Si los usuarios de Borland bcc582 solicitan de forma mayoritaria que actualicemos a la version 6.6, asi lo haremos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Por favor, se agradece que los usuarios de Borland muestren su opinión, gracias
|
BCC 6.6
|
Elvira que tipo de problemas tienes en RED.
Yo utilizo la 5.8.2 en infinidad de ambientes sin problemas, a lo mejor la solucion esta por otro lado.
Tengo Dbf's en Samba en un server Linux, y un 2003 server.
Tengo Mysql en Windows 2003 server, Linux.
Tengo Windows 98,XP,7 como clientes.
En lan inalambricas, cableadas, por vpn, servidores remotos.
Todas las aplicaciones funcionando sin problemas.
Mandanos tus errores a ver como te ayudamos.
Saludos
Desde Chile
Adolfo
|
BCC 6.6
|
Hola..
1. Revise este link ... problemas de win 7 en redes locales = índices corruptos
<!-- m --><a class="postlink" href="http://www.alaska-software.com/fixes/smb2/overview.shtm">http://www.alaska-software.com/fixes/smb2/overview.shtm</a><!-- m -->
2. Registro repetidos... control por software : ...tabla con atributo del consecutivo... bloqueo de la tabla...incremento del consecutivo.... grabar transacción ... verificar....desbloquear tabla...sino reversar... Conclusión nada que ver con harbour o xharbour
Russoft Ltda.
|
BCC 6.6
|
Amigos,
Muchas gracias por sus respuestas.
La aplicación usa el contador y bloqueos, de hecho tiene unos cuantos años y hasta XP funcionaba muy bien.
Esa parte del código no se ha modificado.
También hemos probado a desactivar el opportunistick lock con la función OS_NetRegOK(.t.), pero sigue sin funcionar.
|
BCC 6.6
|
Hola Adolfo:
Lo que nos ocurre es que hay registros que desaparecen o se repite el mismo número de factura al trabajar en red local.
Y cuando hay tres usuarios conectados a un DBF, los xBrowses van lentísimos. Tampoco tienen muchos registros, unos 10.000 como máximo.
Sólo sucede con Windows 7.
|
BCC 6.6
|
[quote="elvira":2yk4wl22]Hola Adolfo:
Lo que nos ocurre es que hay registros que desaparecen o se repite el mismo número de factura al trabajar en red local.
Y cuando hay tres usuarios conectados a un DBF, los xBrowses van lentísimos. Tampoco tienen muchos registros, unos 10.000 como máximo.
Sólo sucede con Windows 7.[/quote:2yk4wl22]
Nose como lo haras, pero para evitar repeticion de numero de factura, te recomiendo uses un archivo de un solo registro donde controles bajo un campo, el numero de factura a procesarse luego de finalizada la factura y antes de imprimirla, logico esta, usando una incrementacion del numero de factura, nFactura + 1, y luego grabas el registro de datos de la factura con su unico numero, cualquier duda, estoy a la orden, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
BCC 6.6
|
Yo uso la BCC63 y no tengo ningún problema.
Elvira hay que evitar al máximo los FILTER.
Para que la numeración no se repita tenés que controlarla con LOCK.
Saludos,
Adhemar
|
BCC 6.6
|
Amigos,
Este es el error que a veces tiene algún cliente con Borland 5.82:
[code=fw:1g8otkxe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application Internal Error - C:\CLIENTE\APLICACION.EXE<br />Terminated <span style="color: #00C800;">at</span>: <span style="color: #000000;">2013.06</span><span style="color: #000000;">.8</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">32</span>:<span style="color: #000000;">41</span><br />Error irrecuperable <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error: <br /><br /> <span style="color: #000000;">Exception</span> Code:<span style="color: #000000;">C0000005</span><br /> Exception Address:76520A4D<br /> EAX:07E92B58 EBX:<span style="color: #000000;">00100450</span> ECX:752F50BC EDX:0008E3C8<br /> ESI:<span style="color: #000000;">00000000</span> EDI:<span style="color: #000000;">00000000</span> EBP:0018ACAC<br /> CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:76520A4D SS:<span style="color: #000000;">ESP</span>:002B:0018ACA4<br /> DS:002B ES:002B FS:<span style="color: #000000;">0053</span> GS:002B<br /> Flags:<span style="color: #000000;">00010246</span><br /> CS:<span style="color: #000000;">EIP</span>: <span style="color: #000000;">FF</span> <span style="color: #000000;">51</span> <span style="color: #000000;">04</span> 8B C6 5E 5D C2 <span style="color: #000000;">14</span> <span style="color: #000000;">00</span> 1B C0 <span style="color: #000000;">83</span> D8 FF EB<br /> SS:<span style="color: #000000;">ESP</span>: 07E92B58 07ED206C 0018ACD4 76520B05 07DF28E8 <span style="color: #000000;">00100450</span> 7650F150 07ED206C 7654FB38 07ED2050 07ED206C <span style="color: #000000;">00000001</span> 0018ACFC 76520ABE <span style="color: #000000;">00100450</span> 7650F150<br /><br /> C stack:<br /> <span style="color: #000000;">EIP</span>: <span style="color: #000000;">EBP</span>: <span style="color: #000000;">Frame</span>: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br /> 76520A4D 0018ACAC 0018ACD4 76520B05 07DF28E8 <span style="color: #000000;">00100450</span> 7650F150 07ED206C 7654FB38 07ED2050 07ED206C <span style="color: #000000;">00000001</span><br /> 76520B05 0018ACD4 0018ACFC 76520ABE <span style="color: #000000;">00100450</span> 7650F150 07DF28E8 7654FB38 07ED2050 0018AD48 752B77C4 0295020C<br /> 76520ABE 0018ACFC 0018AD14 765502DB 752B77C4 <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 765502DB 0018AD14 0018AD7C <span style="color: #000000;">75292466</span> 07ED2050 752B77C4 0018AD48 07690FB0 <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000100</span> 7525BD2A <span style="color: #000000;">00000000</span><br /> <span style="color: #000000;">75292466</span> 0018AD7C 0018ADA4 75282FF5 07ED2050 00E85BA0 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018AE9C <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> 07690FB0<br /> 75282FF5 0018ADA4 0018AF30 75254CF8 <span style="color: #000000;">00000000</span> 00E85BA0 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018AE9C <span style="color: #000000;">00000000</span> 752523A8 <span style="color: #000000;">00000000</span><br /> 75254CF8 0018AF30 0018B820 7525220C <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018AF9C <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0018AFB4<br /> 7525220C 0018B820 0018BC88 752B1D37 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">75288279</span> <span style="color: #000000;">00000000</span> FFFFFFFF<br /> 752B1D37 0018BC88 0018BCA4 7528829E 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 7528829E 0018BCA4 0018BCD0 773662FA 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">75288279</span> DCBAABCD <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 773662FA 0018BCD0 0018BD48 77366D3A <span style="color: #000000;">75288279</span> 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> C57500AA <span style="color: #000000;">00000302</span> <span style="color: #000000;">75288279</span><br /> 77366D3A 0018BD48 0018BD80 77370D27 <span style="color: #000000;">00000000</span> <span style="color: #000000;">75288279</span> 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 77370D27 0018BD80 0018BDA0 7737794A <span style="color: #000000;">75288279</span> 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span><br /> 7737794A 0018BDA0 0018BDC8 00417C1A <span style="color: #000000;">75288279</span> 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 00418BE8 001205D0<br /> 00417C1A 0018BDC8 0018BDE8 00418C07 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000107</span> <span style="color: #000000;">00000000</span><br /> 00418C07 0018BDE8 0018BE14 773662FA 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 00418BE8 DCBAABCD <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br /> 773662FA 0018BE14 0018BE8C 77366D3A 00418BE8 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> C575036E <span style="color: #000000;">00000302</span> 00F6EB90<br /> 77366D3A 0018BE8C 0018BED0 7736965E <span style="color: #000000;">00000000</span> 00418BE8 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 00F6EBB8 <span style="color: #000000;">00000001</span><br /> 7736965E 0018BED0 0018BEF4 7737617A 00F6EB90 <span style="color: #000000;">00000000</span> 00418BE8 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span><br /> 7737617A 0018BEF4 0018BF10 004315AA 001205D0 <span style="color: #000000;">00000302</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 00802F40<br /><br /><br />Modules:<br />0x00400000 0x00573000 C:\CLIENTE\APLICACION.EXE<br />0x77D10000 0x00180000 C:\Windows\SysWOW64\ntdll.dll<br />0x75B80000 0x00110000 C:\Windows\syswow64\kernel32.dll<br />0x75880000 0x00047000 C:\Windows\syswow64\KERNELBASE.dll<br />0x12170000 0x0018E000 C:\CLIENTE\ACE32.DLL<br />0x73760000 0x00009000 C:\Windows\system32\VERSION.dll<br />0x772A0000 0x000AC000 C:\Windows\syswow64\msvcrt.dll<br />0x75370000 0x00012000 C:\Windows\system32\MPR.dll<br />0x73860000 0x00007000 C:\Windows\system32\WSOCK32.dll<br />0x75570000 0x00035000 C:\Windows\syswow64\WS2_32.dll<br />0x75EF0000 0x000F0000 C:\Windows\syswow64\RPCRT4.dll<br />0x753F0000 0x00060000 C:\Windows\syswow64\SspiCli.dll<br />0x753E0000 0x0000C000 C:\Windows\syswow64\CRYPTBASE.dll<br />0x76630000 0x00019000 C:\Windows\SysWOW64\sechost.dll<br />0x76620000 0x00006000 C:\Windows\syswow64\NSI.dll<br />0x77350000 0x00100000 C:\Windows\syswow64\USER32.dll<br />0x76210000 0x00090000 C:\Windows\syswow64\GDI32.dll<br />0x75FE0000 0x0000A000 C:\Windows\syswow64\LPK.dll<br />0x75C90000 0x0009D000 C:\Windows\syswow64\USP10.dll<br />0x762A0000 0x000A0000 C:\Windows\syswow64\ADVAPI32.dll<br />0x76020000 0x0011E000 C:\Windows\syswow64\CRYPT32.dll<br />0x77CE0000 0x0000C000 C:\Windows\syswow64\MSASN1.dll<br />0x76490000 0x0002D000 C:\Windows\syswow64\WINTRUST.dll<br />0x75450000 0x0011B000 C:\Windows\syswow64\WININET.DLL<br />0x76340000 0x00057000 C:\Windows\syswow64\SHLWAPI.dll<br />0x757B0000 0x00003000 C:\Windows\syswow64\Normaliz.dll<br />0x759C0000 0x001B8000 C:\Windows\syswow64\iertutil.dll<br />0x75680000 0x00111000 C:\Windows\syswow64\urlmon.dll<br />0x764C0000 0x0015C000 C:\Windows\syswow64\ole32.dll<br />0x76400000 0x0008F000 C:\Windows\syswow64\OLEAUT32.dll<br />0x703C0000 0x00051000 C:\Windows\system32\WINSPOOL.DRV<br />0x73AE0000 0x0019E000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6<span style="color: #000000;">.0</span><span style="color: #000000;">.7601</span>.17514_none_41e6975e2bd6f2b2\COMCTL32.DLL<br />0x755B0000 0x0007B000 C:\Windows\syswow64\COMDLG32.DLL<br />0x76650000 0x00C4A000 C:\Windows\syswow64\SHELL32.dll<br />0x740E0000 0x00005000 C:\Windows\system32\MSIMG32.DLL<br />0x75350000 0x0001C000 C:\Windows\system32\OLEDLG.DLL<br />0x757A0000 0x00005000 C:\Windows\syswow64\PSAPI.DLL<br />0x763A0000 0x00060000 C:\Windows\system32\IMM32.DLL<br />0x76140000 0x000CC000 C:\Windows\syswow64\MSCTF.dll<br />0x72AD0000 0x00080000 C:\Windows\system32\uxtheme.dll<br />0x10000000 0x0000A000 C:\Program Files <span style="color: #000000;">(</span>x86<span style="color: #000000;">)</span>\SweetIM\Messenger\mgAdaptersProxy.dll<br />0x7C360000 0x00056000 C:\Program Files <span style="color: #000000;">(</span>x86<span style="color: #000000;">)</span>\SweetIM\Messenger\MSVCR71.dll<br />0x753B0000 0x00013000 C:\Windows\system32\dwmapi.dll<br />0x75930000 0x00083000 C:\Windows\syswow64\CLBCatQ.DLL<br />0x05460000 0x002B4000 c:\Cliente\freeimage.dll<br />0x72DA0000 0x00016000 C:\Windows\system32\CRYPTSP.dll<br />0x72D10000 0x0003B000 C:\Windows\system32\rsaenh.dll<br />0x71170000 0x0002B000 C:\Windows\system32\msls31.dll<br />0x75D50000 0x0019D000 C:\Windows\syswow64\SETUPAPI.dll<br />0x75FF0000 0x00027000 C:\Windows\syswow64\CFGMGR32.dll<br />0x75D30000 0x00012000 C:\Windows\syswow64\DEVOBJ.dll<br />0x74330000 0x000F5000 C:\Windows\system32\propsys.dll<br />0x73720000 0x00021000 C:\Windows\system32\ntmarta.dll<br />0x75630000 0x00045000 C:\Windows\syswow64\WLDAP32.dll<br />0x73DF0000 0x0000B000 C:\Windows\system32\profapi.dll<br />0x751C0000 0x00058000 C:\Program Files <span style="color: #000000;">(</span>x86<span style="color: #000000;">)</span>\Common Files\microsoft shared\ink\tiptsf.dll<br />0x6CC10000 0x0016F000 C:\Windows\system32\explorerframe.dll<br />0x70390000 0x0002F000 C:\Windows\system32\DUser.dll<br />0x6CB50000 0x000B2000 C:\Windows\system32\DUI70.dll<br />0x6C370000 0x000FB000 C:\Windows\system32\WindowsCodecs.dll<br />0x72D50000 0x0004C000 C:\Windows\system32\apphelp.dll<br />0x75180000 0x00036000 C:\Users\Maricarmen\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\<span style="color: #000000;">17.0</span><span style="color: #000000;">.2003</span><span style="color: #000000;">.1112</span>\SkyDriveShell.dll<br />0x74B90000 0x00085000 C:\Users\Maricarmen\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\<span style="color: #000000;">17.0</span><span style="color: #000000;">.2003</span><span style="color: #000000;">.1112</span>\MSVCP110.dll<br />0x74AB0000 0x000D2000 C:\Users\Maricarmen\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\<span style="color: #000000;">17.0</span><span style="color: #000000;">.2003</span><span style="color: #000000;">.1112</span>\MSVCR110.dll<br />0x744A0000 0x00087000 C:\Users\Maricarmen\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\<span style="color: #000000;">17.0</span><span style="color: #000000;">.2003</span><span style="color: #000000;">.1112</span>\Telemetry.dll<br />0x74490000 0x0000A000 C:\Users\Maricarmen\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\<span style="color: #000000;">17.0</span><span style="color: #000000;">.2003</span><span style="color: #000000;">.1112</span>\logging.dll<br />0x74430000 0x00052000 C:\Windows\system32\faultrep.dll<br />0x74310000 0x00015000 C:\Windows\system32\Cabinet.dll<br />0x73E70000 0x00058000 C:\Windows\system32\WINHTTP.dll<br />0x73E20000 0x0004F000 C:\Windows\system32\webio.dll<br />0x742E0000 0x0002F000 C:\Windows\system32\XmlLite.dll<br />0x6D530000 0x00031000 C:\Windows\system32\EhStorShell.dll<br />0x6A020000 0x00406000 C:\PROGRA~<span style="color: #000000;">2</span>\MICROS~<span style="color: #000000;">4</span>\Office14\GROOVEEX.DLL<br />0x73F10000 0x000A3000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9<span style="color: #000000;">.0</span><span style="color: #000000;">.30729</span>.6161_none_50934f2ebcb7eb57\MSVCR90.dll<br />0x714D0000 0x0008E000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9<span style="color: #000000;">.0</span><span style="color: #000000;">.30729</span>.6161_none_50934f2ebcb7eb57\MSVCP90.dll<br />0x6D640000 0x0002B000 C:\Windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9<span style="color: #000000;">.0</span><span style="color: #000000;">.30729</span>.6161_none_51cd0a7abbe4e19b\ATL90.DLL<br />0x69840000 0x0041A000 C:\PROGRA~<span style="color: #000000;">2</span>\COMMON~<span style="color: #000000;">1</span>\MICROS~<span style="color: #000000;">1</span>\OFFICE14\Cultures\office.odf<br />0x68FC0000 0x00880000 C:\PROGRA~<span style="color: #000000;">2</span>\MICROS~<span style="color: #000000;">4</span>\Office14\<span style="color: #000000;">3082</span>\GrooveIntlResource.dll<br />0x6C860000 0x00070000 C:\Windows\system32\ntshrui.dll<br />0x73C90000 0x00019000 C:\Windows\system32\srvcli.dll<br />0x6D2F0000 0x0000B000 C:\Windows\system32\cscapi.dll<br />0x70490000 0x0000A000 C:\Windows\system32\slc.dll<br />0x72D00000 0x0000E000 C:\Windows\system32\RpcRtRemote.dll<br />0x6D4D0000 0x0005C000 C:\Windows\System32\StructuredQuery.dll<br />0x73700000 0x00008000 C:\Windows\System32\Secur32.dll<br />0x6C810000 0x0004E000 C:\Windows\SysWOW64\actxprxy.dll<br />0x6D600000 0x00033000 C:\Program Files <span style="color: #000000;">(</span>x86<span style="color: #000000;">)</span>\Internet Explorer\ieproxy.dll<br />0x6D4B0000 0x00016000 C:\Win<br />Called <span style="color: #0000ff;">from</span> SENDMESSAGE<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TWINDOW<span style="color: #000000;">(</span><span style="color: #000000;">555</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TRICHEDIT:<span style="color: #000000;">SENDMSG</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TRICHEDIT:<span style="color: #000000;">PASTE</span><span style="color: #000000;">(</span><span style="color: #000000;">937</span><span style="color: #000000;">)</span> in .\source\classes\TRICHEDI.PRG<br />Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TRICHEDIT_RBUTTONDOWN<span style="color: #000000;">(</span><span style="color: #000000;">1084</span><span style="color: #000000;">)</span> in .\source\classes\TRICHEDI.PRG<br />Called <span style="color: #0000ff;">from</span> TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">494</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TRICHEDIT:<span style="color: #000000;">RBUTTONDOWN</span><span style="color: #000000;">(</span><span style="color: #000000;">1154</span><span style="color: #000000;">)</span> in .\source\classes\TRICHEDI.PRG<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1700</span><span style="color: #000000;">)</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TRICHEDIT:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">623</span><span style="color: #000000;">)</span> in .\source\classes\TRICHEDI.PRG<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">(</span><span style="color: #000000;">3154</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> DIALOGBOX<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">270</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> CONCEPTO<span style="color: #000000;">(</span><span style="color: #000000;">3212</span><span style="color: #000000;">)</span> in c:\FWH\prog01\concepto.PRG<br />Called <span style="color: #0000ff;">from</span> TBUTTONBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">157</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">BUTTON</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TBUTTON:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1654</span><span style="color: #000000;">)</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TBUTTONBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">189</span><span style="color: #000000;">)</span> in .\source\classes\BUTTONB.PRG<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">(</span><span style="color: #000000;">3154</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> SENDMESSAGE<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">(</span><span style="color: #000000;">379</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">886</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> DIALOGBOX<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">270</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">1926</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TCONTROL:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">1713</span><span style="color: #000000;">)</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TXBROWSE:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">3632</span><span style="color: #000000;">)</span> in source\<span style="color: #0000ff;">xbrowse</span>.prg<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1700</span><span style="color: #000000;">)</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">11731</span><span style="color: #000000;">)</span> in source\<span style="color: #0000ff;">xbrowse</span>.prg<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">(</span><span style="color: #000000;">3154</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">270</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TRBTN:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">676</span><span style="color: #000000;">)</span> in .\source\classes\TRBTN.PRG<br />Called <span style="color: #0000ff;">from</span> TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span><span style="color: #000000;">854</span><span style="color: #000000;">)</span> in .\source\classes\TRBTN.PRG<br />Called <span style="color: #0000ff;">from</span> TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1690</span><span style="color: #000000;">)</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1520</span><span style="color: #000000;">)</span> in .\source\classes\TRBTN.PRG<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">(</span><span style="color: #000000;">3154</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> WINRUN<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">980</span><span style="color: #000000;">)</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">897</span><span style="color: #000000;">)</span> in c:\FWH\prog01\<span style="color: #0000ff;">MENU</span>.PRG<br />-----------------------------------------------------------------<br /> </div>[/code:1g8otkxe]
¿A alguno le ha sucedido?.
Muy agradecida.
|
BCC 6.6
|
Elvira,
No creo que sea un error de Borland sino que tal vez el handle de la ventana pueda no estar correcto, aunque eso parece tambien muy improbable. El caso es que se envia el mensaje WM_PASTE y no hay que pasarle ningún parámetro, de ahi el deducir que no quedaria otra opción que el handle de la ventana no este bien (lo cual, insisto, es muy dificil si el control RichEdit ya está en uso:
Prueba con este cambio en el método Paste() de TRichEdit:
[code=fw:z36sedm2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Paste<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br /> <span style="color: #00C800;">if</span> IsWindow<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> WM_PASTE <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">PostMsg</span><span style="color: #000000;">(</span> FM_CHANGE <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:z36sedm2]
|
BCC 6.6
|
Antonio,
El error se produce cuando se hace un Control y V sin datos.
Hay que borrar el clipboard y entonces pulsar Control y V en el richedit para que casque.
Muchas gracias.
|
BCC 6.6
|
Esty Usando Bcc 6.6 sin ningun problerma
Saludos
|
BCC 6.6
|
Elvira,
Entonces una solución podría ser:
[code=fw:2o79seig]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Paste<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br /> <span style="color: #00C800;">local</span> oClp := TClipboard<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ! oClp:<span style="color: #000000;">IsEmpty</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">(</span> WM_PASTE <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">PostMsg</span><span style="color: #000000;">(</span> FM_CHANGE <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> oClp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2o79seig]
|
BCC 7 32 Bit \INCLUDE
|
hi,
what is in c:\BCC7\include\*.* <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
i have only Sub Folder
[quote:3ofc7f0f]c:\BCC7\include\dinkumware\
c:\BCC7\include\windows\
[/quote:3ofc7f0f]
but no other Files like *.H <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
---
i want to use
[quote:3ofc7f0f]c:\fwh\source\winapi\listview.c
c:\fwh\source\classes\tlistvie.prg[/quote:3ofc7f0f]
for a new CLASS TGrid
i have rename HB_FUNC() in listview.c and also in tlistvie.prg with new "Prefix" to avoid "dupe" Warning
i use c:\fwh\samples\buildh.bat and
[quote:3ofc7f0f]bcdir=c:\bcc7[/quote:3ofc7f0f]
and get Warning missing "Windows.h" ...
---
so what must i do <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
how can use modify listview.c for new Project TGrid <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: -->
|
BCC 7 32 Bit \INCLUDE
|
Dear Jimmy,
It seems as you are using an uncomplete bcc7
In those folders there should be lots of header files
|
BCC 7 32 Bit \INCLUDE
|
If you post your code here then we will review it and build it
|
BCC 7 32 Bit \INCLUDE
|
[quote="Antonio Linares":1z77di0a]It seems as you are using an uncomplete bcc7
In those folders there should be lots of header files[/quote:1z77di0a]
that is what i thought <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
where do i get a complete Version or can i use BCC 5.83 \INCLUDE Files <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
BCC 7 32 Bit \INCLUDE
|
Dear Jimmy,
Please check your email, I sent you the official URLs to download it
|
BCC 7 32 Bit \INCLUDE
|
hi Antonio,
[quote="Antonio Linares":nqduvn74]Please check your email, I sent you the official URLs to download it[/quote:nqduvn74]did you send it to @WEB,DE ?
i have not got a Email ,,, WEB.DE often refuse Mail ...
|
BCC 7 32 Bit \INCLUDE
|
Please check this url before 24 hours:
[url:1eltlxji]https://wormhole.app/20Jxy#qVKl_veFeETLmI3qAcZtmw[/url:1eltlxji]
|
BCC 7 32 Bit \INCLUDE
|
hi Antonio,
using your LVCOLUMN Sample i recognize that i use "C" Source wrong.
i have try
[code=fw:lko32zr7]<div class="fw" id="{CB}" style="font-family: monospace;">PROCEDURE MAIN<br />...<br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"LISTVIEW.C"</span></div>[/code:lko32zr7]
which give me Warnings <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
---
when use it in same PRG
[code=fw:lko32zr7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span>...<span style="color: #000000;">)</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:lko32zr7]
i get no Warning about "missing" <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
BCC 7 32 Bit \INCLUDE
|
Dear Jimmy,
there are some differences if you want to use it as a standalone C file or inside a PRG using #pragma BEGINDUMP ... ENDDUMP
can you use it for now inside the PRG ?
|
BCC 7 32 Bit \INCLUDE
|
hi Antonio,
[quote="Antonio Linares":q6zyv75n]there are some differences if you want to use it as a standalone C file or inside a PRG using #pragma BEGINDUMP ... ENDDUMP[/quote:q6zyv75n]
Ok, begin to understand
[quote="Antonio Linares":q6zyv75n]can you use it for now inside the PRG ?[/quote:q6zyv75n]
not sure if HB_FUNC() is working ... but i get no Warning when compile <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
i do "add" those HB_FUNC() which i "think" is need ... just search for Listview_Macro in Source
those HB_FUNC() later are used in CLASS TGrid()
i will present CLASS TGrid() when have a working Sample but it will take some Time ...
|
BCC 7.0 - what do you think about ?
|
Hi all,
I'm going to update our FWH library to the July 2015 version but I'm in doubt if could it be convenient to update my BCC5.82 to the 7.00 too.
What do you think about ? Which advantages do we have moving to 7.00 ? Is there a better speed or better integration with the latest OSs (eg Windows 10) ?
Thank you in advance
|
BCC 7.0 - what do you think about ?
|
Marco,
A more recent version of a software means less bugs, new enhancements and new features.
To me Harbour + FWH + BCC7 is working really fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
And of course, better integration with Windows 10
|
BCC 7.0 - what do you think about ?
|
Hi Antonio, thank you for your point of view.
I have installed latest xharbour for BCC7.0 and BCC7.0 too from <!-- m --><a class="postlink" href="http://www.whosaway.com/">http://www.whosaway.com/</a><!-- m -->
I succesfully compiled my apps, just two things;
- to complete the link and generate the .exe I need to copy into the app executable dir the lib uuid.lib. It's a bit strange, I'm doing well ?
- I have installed BCC7.0 from whosaway. They said it is an evaluation version. What does it means ? The generated executeble will expire ? I checked on the embarcadero website but I didn't find a BCC7.0 to buy but only the C++Builder® 10 Seattle. Where I can buy it if needed ?
Thank you
|
BCC 7.0 - what do you think about ?
|
Marco,
I am sending you an email with detailed instructions
|
BCC 7.0 - what do you think about ?
|
Marco,
[quote="Marco Turco":pqud0tdx]Hi all,
I'm going to update our FWH library to the July 2015 version but I'm in doubt if could it be convenient to update my BCC5.82 to the 7.00 too.
What do you think about ? Which advantages do we have moving to 7.00 ? Is there a better speed or better integration with the latest OSs (eg Windows 10) ?
Thank you in advance[/quote:pqud0tdx]
I can see no immediate advantages (ie. speed, etc.) but I agree with Antonio: better using updated compilers.
EMG
|
BCC 7.0 - what do you think about ?
|
[quote="Antonio Linares":2zkt2j6l]Marco,
I am sending you an email with detailed instructions[/quote:2zkt2j6l]
mee too, please
|
BCC 7.0 - what do you think about ?
|
One immediate advantage is that bcc7 has header files for more recent windows APIs.
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
Andi Jahja tests:
[quote:389a90cb]I noticed that BCC 7.1 (LLVM 3.3.1) is very much slower than BCC 7.0 (LLVM 3.1).
(First 64-bit version from BCC 6.5 upto BCC 7.0 were using LLVM 3.1).
Comparison (speedtst.prg) follows:
BCC 7.1
2016-03-27 01:46:07 Windows 7 6.1.7601 Service Pack 1
Harbour 3.2.0dev (r1603240307) LLVM/Clang C 3.3.1 (35465.f352ad3.17344af) (64-bit) x86-64
====================================================================
[ total application time: ]....................................28.94
[ total real time: ]...........................................29.11
BCC 7.0
2016-03-27 01:47:52 Windows 7 6.1.7601 Service Pack 1
Harbour 3.2.0dev (r1603240307) LLVM/Clang C 3.1 ((35091.dcc1b50.5e40b02)) (64-bit) x86-64
====================================================================
[ total application time: ]....................................14.34
[ total real time: ]...........................................14.45[/quote:389a90cb]
FWH 64 for BCC is compatible with both BCC 7.0 and 7.1, so you should consider trying BCC 7.0 too <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
Hi,
What is doing the speedtst.prg?
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
Marc,
[code=fw:3cmsqr0u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br /> * HVM speed test program<br /> *<br /> * Copyright 2008 Przemyslaw Czerpak <druzus / at / priv.onet.pl><br /> *<br /> */</span><br /><br /><span style="color: #B900B9;">/* Harbour MT functions used in this test */</span><br /><span style="color: #B900B9;">/*<br />#xtranslate hb_mutexSubscribe( => mt_mutexSubscribe(<br />#xtranslate hb_mutexNotify( => mt_mutexNotify(<br />#xtranslate hb_mutexCreate( => mt_mutexCreate(<br />#xtranslate hb_threadOnce( => mt_threadOnce(<br />#xtranslate hb_threadStart( => mt_threadStart(<br />#xtranslate hb_threadJoin( => mt_threadJoin(<br />#xtranslate hb_threadWaitForAll( => mt_threadWaitForAll(<br />*/</span><br /><br /><span style="color: #00D7D7;">#define</span> N_TESTS <span style="color: #000000;">56</span><br /><span style="color: #00D7D7;">#define</span> N_LOOPS <span style="color: #000000;">1000000</span><br /><span style="color: #00D7D7;">#define</span> ARR_LEN <span style="color: #000000;">16</span><br /><br />#ifndef __HARBOUR__<br /> #ifndef __XPP__<br /> #ifndef __CLIP__<br /> #ifndef FlagShip<br /> <span style="color: #00D7D7;">#define</span> __CLIPPER__<br /> #endif<br /> #endif<br /> #endif<br />#endif<br /><br /><br />#ifdef __CLIPPER__<br /> <span style="color: #B900B9;">/* Clipper does not support multithreading */</span><br /> #ifndef __ST__<br /> <span style="color: #00D7D7;">#define</span> __ST__<br /> #endif<br /> <span style="color: #B900B9;">/* Clipper does not have function to extract process time */</span><br /> #xtranslate hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#endif<br /><br />#ifdef FlagShip<br /> <span style="color: #00D7D7;">#define</span> __NO_OBJ_ARRAY__<br /> <span style="color: #B900B9;">/* FlagShip does not support multithreading */</span><br /> #ifndef __ST__<br /> <span style="color: #00D7D7;">#define</span> __ST__<br /> #endif<br /> #xtranslate hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => secondsCPU<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* the FlagShip version of seconds() returns integer values */</span><br /> #xtranslate seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span> => fs_seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#endif<br /><br />#ifdef __XPP__<br /> <span style="color: #00D7D7;">#define</span> __NO_OBJ_ARRAY__<br /> <span style="color: #B900B9;">/* Has xBase++ function to extract process time? */</span><br /> #xtranslate hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#endif<br /><br />#ifdef __CLIP__<br /> <span style="color: #00D7D7;">#define</span> __NO_OBJ_ARRAY__<br /> <span style="color: #B900B9;">/* CLIP version for MT performance testing is not ready yet */</span><br /> #ifndef __ST__<br /> <span style="color: #00D7D7;">#define</span> __ST__<br /> #endif<br /> #xtranslate hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => secondsCPU<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#endif<br /><br />#ifdef __XHARBOUR__<br /> <span style="color: #B900B9;">/* By default build xHarbour binaries without MT support.<br /> * xHarbour needs separated source code versions for MT and ST mode<br /> * because standard MT functions are not available in ST libraries.<br /> */</span><br /> #ifndef __ST__<br /> #ifndef __MT__<br /> #ifndef MT<br /> #ifndef HB_THREAD_SUPPORT<br /> <span style="color: #00D7D7;">#define</span> __ST__<br /> #endif<br /> #endif<br /> #endif<br /> #endif<br /> #xtranslate hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => secondsCPU<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#endif<br /><br /><span style="color: #B900B9;">/* by default create MT version */</span><br />#ifndef __MT__<br /> #ifndef __ST__<br /> <span style="color: #00D7D7;">#define</span> __MT__<br /> #endif<br />#endif<br /><br /><br />#command ? => spd_out<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#command ? <xx,...> => spd_out<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;spd_out<span style="color: #000000;">(</span><xx><span style="color: #000000;">)</span><br />#command ?? <xx,...> => spd_out<span style="color: #000000;">(</span><xx><span style="color: #000000;">)</span><br /><br />#ifdef __HARBOUR__<br /> #ifdef __XHARBOUR__<br /> <span style="color: #00D7D7;">#define</span> EOL hb_osNewLine<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> #else<br /> <span style="color: #00D7D7;">#define</span> EOL hb_eol<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> #endif<br />#else<br /> #ifndef EOL<br /> <span style="color: #00D7D7;">#define</span> EOL chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /> #endif<br />#endif<br /><br />#xcommand TEST <testfunc> ;<br /> <span style="color: #000000;">[</span> WITH <locals,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">STATIC</span> <statics,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> FIELD <fields,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> MEMVAR <memvars,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">PRIVATE</span> <privates,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">PUBLIC</span> <publics,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">INIT</span> <init> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> EXIT <exit> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> INFO <info> <span style="color: #000000;">]</span> ;<br /> CODE <span style="color: #000000;">[</span> <testExp,...> <span style="color: #000000;">]</span> => ;<br /> func <testfunc> ; ;<br /> <span style="color: #00C800;">local</span> time, i:=<span style="color: #00C800;">nil</span>, x:=<span style="color: #00C800;">nil</span> ; ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">local</span> <locals> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">static</span> <statics> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> field <fields> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> memvar <memvars> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">private</span> <privates> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #00C800;">public</span> <publics> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <init> ; <span style="color: #000000;">]</span> ;<br /> time := hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; ;<br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_LOOPS ; ;<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">(</span> <testExp> <span style="color: #000000;">)</span> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #00C800;">next</span> ; ;<br /> time := hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - time ; ;<br /> <span style="color: #000000;">[</span> <exit> ; <span style="color: #000000;">]</span> ;<br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">{</span> procname<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">": "</span> + iif<span style="color: #000000;">(</span> <.info.>, <<span style="color: #000000;">(</span>info<span style="color: #000000;">)</span>>, #<testExp> <span style="color: #000000;">)</span>, time <span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">STATIC</span> s_lStdOut := .F.<br /><br />#ifdef __HARBOUR__<br />#ifndef __XHARBOUR__<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbver.ch"</span><br />#endif<br />#endif<br /><br />#ifdef __HARBOUR__<br />proc main<span style="color: #000000;">(</span> ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aParams := hb_aparams<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#else<br />proc main<span style="color: #000000;">(</span> _p01, _p02, _p03, _p04, _p05, _p06, _p07, _p08, _p09, _p10, ;<br /> _p11, _p12, _p13, _p14, _p15, _p16, _p17, _p18, _p19, _p20 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aParams := ;<br /> asize<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> _p01, _p02, _p03, _p04, _p05, _p06, _p07, _p08, _p09, _p10, ;<br /> _p11, _p12, _p13, _p14, _p15, _p16, _p17, _p18, _p19, _p20 <span style="color: #000000;">}</span>, ;<br /> <span style="color: #0000ff;">min</span><span style="color: #000000;">(</span> pCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />#endif<br /> <span style="color: #00C800;">local</span> nMT, cExclude, lScale, cParam, cMemTests, lSyntax, i, j<br /><br /> Set<span style="color: #000000;">(</span> _SET_DATEFORMAT, <span style="color: #ff0000;">"yyyy-mm-dd"</span> <span style="color: #000000;">)</span><br /><br /> lSyntax := lScale := .f.<br /> cMemTests := <span style="color: #ff0000;">"030 031 023 025 027 041 042 044 053 054 019 022 032 033 055 056 "</span><br /> cExclude := <span style="color: #ff0000;">""</span><br /> nMT := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">for</span> j := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">(</span> aParams <span style="color: #000000;">)</span><br /> cParam := lower<span style="color: #000000;">(</span> aParams<span style="color: #000000;">[</span> j <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> cParam = <span style="color: #ff0000;">"--thread"</span><br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">9</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"="</span><br /> <span style="color: #00C800;">if</span> isdigit<span style="color: #000000;">(</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">10</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nMT := val<span style="color: #000000;">(</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> elseif <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"all"</span><br /> nMT := <span style="color: #000000;">-1</span><br /> <span style="color: #00C800;">else</span><br /> lSyntax := .t.<br /> <span style="color: #00C800;">endif</span><br /> elseif empty<span style="color: #000000;">(</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nMT := <span style="color: #000000;">-1</span><br /> <span style="color: #00C800;">else</span><br /> lSyntax := .t.<br /> <span style="color: #00C800;">endif</span><br /> elseif cParam = <span style="color: #ff0000;">"--exclude="</span><br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">11</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"mem"</span><br /> cExclude += cMemTests<br /> <span style="color: #00C800;">else</span><br /> cExclude += strtran<span style="color: #000000;">(</span> strtran<span style="color: #000000;">(</span> strtran<span style="color: #000000;">(</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">11</span> <span style="color: #000000;">)</span>, ;<br /> <span style="color: #ff0000;">"."</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"."</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"/"</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" "</span><br /> <span style="color: #00C800;">endif</span><br /> elseif cParam = <span style="color: #ff0000;">"--only="</span><br /> cExclude := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span> cParam, <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"mem"</span><br /> cParam := cMemTests<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> <span style="color: #00C800;">if</span> ! strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> $ cParam<br /> cExclude += strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" "</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> elseif cParam == <span style="color: #ff0000;">"--scale"</span><br /> lScale := .t.<br /> elseif cParam == <span style="color: #ff0000;">"--stdout"</span><br /> s_lStdOut := .t.<br /> <span style="color: #00C800;">else</span><br /> lSyntax := .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> lSyntax<br /> ? <span style="color: #ff0000;">"Unknown option:"</span>, cParam<br /> ? <span style="color: #ff0000;">"syntax: speedtst [--thread[=<num>]] [--only=<test(s)>] [--exclude=<test(s)>]"</span><br /> ?<br /> <span style="color: #00C800;">return</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #00C800;">IF</span> ! s_lStdOut<br /> set alternate <span style="color: #0000ff;">to</span> <span style="color: #000000;">(</span> spd_logfile<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> additive<br /> set alternate <span style="color: #0000ff;">on</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #B900B9;">// set console off</span><br /><br /> test<span style="color: #000000;">(</span> nMT, cExclude, lScale <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> ! s_lStdOut<br /> set alternate off<br /> set alternate <span style="color: #0000ff;">to</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">STATIC</span> PROCEDURE spd_out<span style="color: #000000;">(</span> p1, p2, p3, p4, p5, p6 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> nPCount := PCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> s_lStdOut<br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">0</span> ; OutStd<span style="color: #000000;">(</span> EOL <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">1</span> ; OutStd<span style="color: #000000;">(</span> p1 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">2</span> ; OutStd<span style="color: #000000;">(</span> p1, p2 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">3</span> ; OutStd<span style="color: #000000;">(</span> p1, p2, p3 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">4</span> ; OutStd<span style="color: #000000;">(</span> p1, p2, p3, p4 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">5</span> ; OutStd<span style="color: #000000;">(</span> p1, p2, p3, p4, p5 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">6</span> ; OutStd<span style="color: #000000;">(</span> p1, p2, p3, p4, p5, p6 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDCASE</span><br /> <span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">0</span> ; QOut<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">1</span> ; QQOut<span style="color: #000000;">(</span> p1 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">2</span> ; QQOut<span style="color: #000000;">(</span> p1, p2 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">3</span> ; QQOut<span style="color: #000000;">(</span> p1, p2, p3 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">4</span> ; QQOut<span style="color: #000000;">(</span> p1, p2, p3, p4 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">5</span> ; QQOut<span style="color: #000000;">(</span> p1, p2, p3, p4, p5 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> nPCount == <span style="color: #000000;">6</span> ; QQOut<span style="color: #000000;">(</span> p1, p2, p3, p4, p5, p6 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDCASE</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> spd_logfile<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#ifndef __HARBOUR__<br /> <span style="color: #00C800;">RETURN</span> <span style="color: #ff0000;">"speedtst.txt"</span><br />#else<br /> <span style="color: #00C800;">LOCAL</span> cName<br /> hb_FNameSplit<span style="color: #000000;">(</span> hb_ArgV<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>,, @cName <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> hb_FNameMerge<span style="color: #000000;">(</span> , cName, <span style="color: #ff0000;">".txt"</span> <span style="color: #000000;">)</span><br />#endif<br /><br /><span style="color: #B900B9;">/*** TESTS ***/</span><br /><br />TEST t000 INFO <span style="color: #ff0000;">"empty loop overhead"</span> CODE<br /><br />TEST t001 WITH L_C:=dtos<span style="color: #000000;">(</span>date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> CODE x := L_C<br /><br />TEST t002 WITH L_N:=<span style="color: #000000;">112345.67</span> CODE x := L_N<br /><br />TEST t003 WITH L_D:=date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> CODE x := L_D<br /><br />TEST t004 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span>, S_C ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| S_C := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := S_C<br /><br />TEST t005 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span>, S_N ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| S_N := <span style="color: #000000;">112345.67</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := S_N<br /><br />TEST t006 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span>, S_D ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| S_D := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := S_D<br /><br />TEST t007 MEMVAR M_C ;<br /> <span style="color: #00C800;">PRIVATE</span> M_C := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> CODE x := M->M_C<br /><br />TEST t008 MEMVAR M_N ;<br /> <span style="color: #00C800;">PRIVATE</span> M_N := <span style="color: #000000;">112345.67</span> ;<br /> CODE x := M->M_N<br /><br />TEST t009 MEMVAR M_D ;<br /> <span style="color: #00C800;">PRIVATE</span> M_D := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> CODE x := M->M_D<br /><br />TEST t010 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span> ;<br /> MEMVAR P_C ;<br /> <span style="color: #00C800;">PUBLIC</span> P_C ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| M->P_C := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := M->P_C<br /><br />TEST t011 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span> ;<br /> MEMVAR P_N ;<br /> <span style="color: #00C800;">PUBLIC</span> P_N ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| M->P_N := <span style="color: #000000;">112345.67</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := M->P_N<br /><br />TEST t012 <span style="color: #00C800;">STATIC</span> s_once := <span style="color: #00C800;">NIL</span> ;<br /> MEMVAR P_D ;<br /> <span style="color: #00C800;">PUBLIC</span> P_D ;<br /> <span style="color: #0000ff;">INIT</span> hb_threadOnce<span style="color: #000000;">(</span> @s_once, <span style="color: #000000;">{</span>|| M->P_D := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := M->P_D<br /><br />TEST t013 FIELD F_C ;<br /> <span style="color: #0000ff;">INIT</span> use_dbsh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> EXIT close_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> CODE x := F_C<br /><br />TEST t014 FIELD F_N ;<br /> <span style="color: #0000ff;">INIT</span> use_dbsh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> EXIT close_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> CODE x := F_N<br /><br />TEST t015 FIELD F_D ;<br /> <span style="color: #0000ff;">INIT</span> use_dbsh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> EXIT close_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> CODE x := F_D<br /><br />TEST t016 WITH o := errorNew<span style="color: #000000;">(</span><span style="color: #000000;">)</span> CODE x := o:<span style="color: #000000;">Args</span><br /><br />TEST t017 WITH o := errorArray<span style="color: #000000;">(</span><span style="color: #000000;">)</span> CODE x := o<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /><br />TEST t018 CODE <span style="color: #0000ff;">round</span><span style="color: #000000;">(</span> i / <span style="color: #000000;">1000</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><br />TEST t019 CODE str<span style="color: #000000;">(</span> i / <span style="color: #000000;">1000</span> <span style="color: #000000;">)</span><br /><br />TEST t020 WITH s := stuff<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"."</span> <span style="color: #000000;">)</span> CODE val<span style="color: #000000;">(</span> s <span style="color: #000000;">)</span><br /><br />TEST t021 WITH a := afill<span style="color: #000000;">(</span> array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, ;<br /> stuff<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"."</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> CODE val<span style="color: #000000;">(</span> a <span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br />TEST t022 WITH d := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> CODE dtos<span style="color: #000000;">(</span> d - i % <span style="color: #000000;">10000</span> <span style="color: #000000;">)</span><br /><br />TEST t023 CODE eval<span style="color: #000000;">(</span> <span style="color: #000000;">{</span>|| i % ARR_LEN <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />TEST t024 WITH bc := <span style="color: #000000;">{</span>|| i % ARR_LEN <span style="color: #000000;">}</span> ;<br /> INFO eval<span style="color: #000000;">(</span> bc := <span style="color: #000000;">{</span>|| i % ARR_LEN <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE eval<span style="color: #000000;">(</span> bc <span style="color: #000000;">)</span><br /><br />TEST t025 CODE eval<span style="color: #000000;">(</span> <span style="color: #000000;">{</span>| x | x % ARR_LEN <span style="color: #000000;">}</span>, i <span style="color: #000000;">)</span><br /><br />TEST t026 WITH bc := <span style="color: #000000;">{</span>| x | x % ARR_LEN <span style="color: #000000;">}</span> ;<br /> INFO eval<span style="color: #000000;">(</span> bc := <span style="color: #000000;">{</span>| x | x % ARR_LEN <span style="color: #000000;">}</span>, i <span style="color: #000000;">)</span> ;<br /> CODE eval<span style="color: #000000;">(</span> bc, i <span style="color: #000000;">)</span><br /><br />TEST t027 CODE eval<span style="color: #000000;">(</span> <span style="color: #000000;">{</span>| x | f1<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, i <span style="color: #000000;">)</span><br /><br />TEST t028 WITH bc := <span style="color: #000000;">{</span>| x | f1<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> INFO eval<span style="color: #000000;">(</span> bc := <span style="color: #000000;">{</span>| x | f1<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, i <span style="color: #000000;">)</span> ;<br /> CODE eval<span style="color: #000000;">(</span> bc, i <span style="color: #000000;">)</span><br /><br />TEST t029 WITH bc := mkBlock<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{| x | f1( x ) }"</span> <span style="color: #000000;">)</span> ;<br /> INFO eval<span style="color: #000000;">(</span> bc := &<span style="color: #000000;">(</span><span style="color: #ff0000;">"{| x | f1( x ) }"</span><span style="color: #000000;">)</span>, i <span style="color: #000000;">)</span> ;<br /> CODE eval<span style="color: #000000;">(</span> bc, i <span style="color: #000000;">)</span><br /><br />TEST t030 CODE x := &<span style="color: #000000;">(</span> <span style="color: #ff0000;">'f1('</span> + str<span style="color: #000000;">(</span>i<span style="color: #000000;">)</span> + <span style="color: #ff0000;">')'</span> <span style="color: #000000;">)</span><br /><br />TEST t031 WITH bc CODE bc := &<span style="color: #000000;">(</span> <span style="color: #ff0000;">'{| x |f1(x)}'</span> <span style="color: #000000;">)</span>, eval<span style="color: #000000;">(</span> bc, i <span style="color: #000000;">)</span><br /><br />TEST t032 CODE x := valtype<span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> + valtype<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span><br /><br />TEST t033 WITH a := afill<span style="color: #000000;">(</span> array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, ;<br /> stuff<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"."</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> CODE x := strzero<span style="color: #000000;">(</span> i % <span style="color: #000000;">100</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> $ a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /><br />TEST t034 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> == s<br /><br />TEST t035 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = s<br /><br />TEST t036 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> >= s<br /><br />TEST t037 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <= s<br /><br />TEST t038 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> < s<br /><br />TEST t039 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span>, s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> s + s, i <span style="color: #000000;">)</span>, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE x := a<span style="color: #000000;">[</span> i % ARR_LEN + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> > s<br /><br />TEST t040 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := i, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE ascan<span style="color: #000000;">(</span> a, i % ARR_LEN <span style="color: #000000;">)</span><br /><br />TEST t041 WITH a := array<span style="color: #000000;">(</span> ARR_LEN <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">INIT</span> aeval<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x, i | a<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := i, x <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> ;<br /> CODE ascan<span style="color: #000000;">(</span> a, <span style="color: #000000;">{</span>| x | x == i % ARR_LEN <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />TEST t042 WITH a := <span style="color: #000000;">{</span><span style="color: #000000;">}</span>, a2 := <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">}</span>, bc := <span style="color: #000000;">{</span>| x | f1<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, s2 := <span style="color: #ff0000;">"static text"</span> ;<br /> CODE iif<span style="color: #000000;">(</span> i%<span style="color: #000000;">1000</span>==<span style="color: #000000;">0</span>, a:=<span style="color: #000000;">{</span><span style="color: #000000;">}</span>, <span style="color: #000000;">)</span> , aadd<span style="color: #000000;">(</span>a,<span style="color: #000000;">{</span>i,<span style="color: #000000;">1</span>,.t.,s,s2,a2,bc<span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br />TEST t043 WITH a := <span style="color: #000000;">{</span><span style="color: #000000;">}</span> CODE x := a<br /><br />TEST t044 CODE x := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br />TEST t045 CODE f0<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />TEST t046 CODE f1<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span><br /><br />TEST t047 WITH c := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> INFO <span style="color: #ff0000;">"f2( c[1...8] )"</span> ;<br /> CODE f2<span style="color: #000000;">(</span> c <span style="color: #000000;">)</span><br /><br />TEST t048 WITH c := replicate<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">5000</span> <span style="color: #000000;">)</span> ;<br /> INFO <span style="color: #ff0000;">"f2( c[1...40000] )"</span> ;<br /> CODE f2<span style="color: #000000;">(</span> c <span style="color: #000000;">)</span><br /><br />TEST t049 WITH c := replicate<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">5000</span> <span style="color: #000000;">)</span> ;<br /> INFO <span style="color: #ff0000;">"f2( @c[1...40000] )"</span> ;<br /> CODE f2<span style="color: #000000;">(</span> @c <span style="color: #000000;">)</span><br /><br />TEST t050 WITH c := replicate<span style="color: #000000;">(</span> dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">5000</span> <span style="color: #000000;">)</span>, c2 ;<br /> INFO <span style="color: #ff0000;">"f2( @c[1...40000] ), c2 := c"</span> ;<br /> CODE f2<span style="color: #000000;">(</span> @c <span style="color: #000000;">)</span>, c2 := c<br /><br />TEST t051 WITH a := <span style="color: #000000;">{</span><span style="color: #000000;">}</span>, a2 := <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">}</span>, bc := <span style="color: #000000;">{</span>| x | f1<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> s := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, s2 := <span style="color: #ff0000;">"static text"</span>, n := <span style="color: #000000;">1.23</span> ;<br /> CODE f3<span style="color: #000000;">(</span> a, a2, s, i, s2, bc, i, n, x <span style="color: #000000;">)</span><br /><br />TEST t052 WITH a := <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">}</span> CODE f2<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span><br /><br />TEST t053 CODE x := f4<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />TEST t054 CODE x := f5<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />TEST t055 CODE x := space<span style="color: #000000;">(</span><span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /><br />TEST t056 WITH c := dtos<span style="color: #000000;">(</span> date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> CODE f_prv<span style="color: #000000;">(</span> c <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">/*** end of tests ***/</span><br /><br /><br />#ifdef __MT__<br /><br /><span style="color: #00C800;">function</span> thTest<span style="color: #000000;">(</span> mtxJobs, aResults <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> xJob := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">while</span> .T.<br /> hb_mutexSubscribe<span style="color: #000000;">(</span> mtxJobs,, @xJob <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> xJob == <span style="color: #00C800;">NIL</span><br /> exit<br /> <span style="color: #00C800;">endif</span><br /> aResults<span style="color: #000000;">[</span> xJob <span style="color: #000000;">]</span> := &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"t"</span> + strzero<span style="color: #000000;">(</span> xJob, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> thTestScale<span style="color: #000000;">(</span> mtxJobs, mtxResults <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> xJob := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">while</span> .T.<br /> hb_mutexSubscribe<span style="color: #000000;">(</span> mtxJobs,, @xJob <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> xJob == <span style="color: #00C800;">NIL</span><br /> exit<br /> <span style="color: #00C800;">endif</span><br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxResults, &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"t"</span> + strzero<span style="color: #000000;">(</span> xJob, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />#endif<br /><br /><br />proc test<span style="color: #000000;">(</span> nMT, cExclude, lScale <span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> nLoopOverHead, nTimes, nSeconds, cNum, aThreads, aResults, ;<br /> mtxJobs, mtxResults, nTimeST, nTimeMT, nTimeTotST, nTimeTotMT, ;<br /> cTest, x, i, j<br /><br />create_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />#ifdef __HARBOUR__<br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbmemory.ch"</span><br /> <span style="color: #00C800;">if</span> MEMORY<span style="color: #000000;">(</span> HB_MEM_USEDMAX <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> ? <span style="color: #ff0000;">"Warning !!! Memory statistic enabled."</span><br /> ?<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> type<span style="color: #000000;">(</span> <span style="color: #ff0000;">"__DBGENTRY()"</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"UI"</span><br /> ? <span style="color: #ff0000;">"Warning !!! HVM debugger enabled."</span><br /> ?<br /> <span style="color: #00C800;">endif</span><br />#endif<br /><br /><span style="color: #B900B9;">//? "Startup loop to increase CPU clock..."</span><br /><span style="color: #B900B9;">//x := seconds() + 5; while x > seconds(); enddo</span><br /><br />#ifdef __MT__<br /><span style="color: #00C800;">if</span> ! hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#else<br /><span style="color: #00C800;">if</span> .t.<br />#endif<br /> <span style="color: #00C800;">if</span> lScale<br /> ? <span style="color: #ff0000;">"scale test available only in MULTI THREAD mode"</span><br /> ?<br /> <span style="color: #00C800;">return</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> nMT != <span style="color: #000000;">0</span><br /> ? <span style="color: #ff0000;">"SINGLE THREAD mode, number of threads set to 0"</span><br /> nMT := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br />? date<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, time<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, os<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />? version<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + iif<span style="color: #000000;">(</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">" (MT)"</span> + iif<span style="color: #000000;">(</span> nMT != <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"+"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span><br />#ifdef __HARBOUR__<br /> ?? hb_compiler<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">""</span><br />#endif<br />?? spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> lScale .and. nMT < <span style="color: #000000;">1</span><br /> nMT := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">endif</span><br /><br />? <span style="color: #ff0000;">"THREADS:"</span>, iif<span style="color: #000000;">(</span> nMT < <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"all->"</span> + ltrim<span style="color: #000000;">(</span> str<span style="color: #000000;">(</span> N_TESTS <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ltrim<span style="color: #000000;">(</span> str<span style="color: #000000;">(</span> nMT <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />? <span style="color: #ff0000;">"N_LOOPS:"</span>, ltrim<span style="color: #000000;">(</span> str<span style="color: #000000;">(</span> N_LOOPS <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span> cExclude <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"excluded tests:"</span>, cExclude<br /><span style="color: #00C800;">endif</span><br /><br />x :=t000<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nLoopOverHead := x<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /><br /><span style="color: #00C800;">if</span> lScale<br /> ? space<span style="color: #000000;">(</span><span style="color: #000000;">56</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"1 th."</span> + str<span style="color: #000000;">(</span>nMT,<span style="color: #000000;">3</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">" th. factor"</span><br /> ? replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"="</span>,<span style="color: #000000;">76</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">else</span><br /> ? dsp_result<span style="color: #000000;">(</span> x, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> ? replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"="</span>,<span style="color: #000000;">68</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br />nSeconds := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />nTimes := hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />nTimeTotST := nTimeTotMT := <span style="color: #000000;">0</span><br /><br />#ifdef __MT__<br /> <span style="color: #00C800;">if</span> lScale<br /> aThreads := array<span style="color: #000000;">(</span> nMT <span style="color: #000000;">)</span><br /> mtxJobs := hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> mtxResults := hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> aThreads<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := hb_threadStart<span style="color: #000000;">(</span> <span style="color: #ff0000;">"thTestScale"</span>, mtxJobs, mtxResults <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> cTest := strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! cTest $ cExclude<br /><br /> <span style="color: #B900B9;">/* linear execution */</span><br /> nTimeST := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxJobs, i <span style="color: #000000;">)</span><br /> hb_mutexSubscribe<span style="color: #000000;">(</span> mtxResults,, @x <span style="color: #000000;">)</span><br /> cTest := x<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">next</span><br /> nTimeST := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - nTimeST<br /> nTimeTotST += nTimeST<br /><br /> <span style="color: #B900B9;">/* simultaneous execution */</span><br /> nTimeMT := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxJobs, i <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> hb_mutexSubscribe<span style="color: #000000;">(</span> mtxResults,, @x <span style="color: #000000;">)</span><br /> cTest := x<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">next</span><br /> nTimeMT := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - nTimeMT<br /> nTimeTotMT += nTimeMT<br /><br /> ? dsp_scaleResult<span style="color: #000000;">(</span> cTest, nTimeST, nTimeMT, nMT, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxJobs, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> hb_threadWaitForAll<span style="color: #000000;">(</span> aThreads <span style="color: #000000;">)</span><br /> elseif nMT < <span style="color: #000000;">0</span><br /> aThreads := array<span style="color: #000000;">(</span> N_TESTS <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> cNum := strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! cNum $ cExclude<br /> aThreads<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := hb_threadStart<span style="color: #000000;">(</span> <span style="color: #ff0000;">"t"</span> + cNum <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> <span style="color: #00C800;">if</span> aThreads<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> != <span style="color: #00C800;">NIL</span> .and. hb_threadJoin<span style="color: #000000;">(</span> aThreads<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>, @x <span style="color: #000000;">)</span><br /> ? dsp_result<span style="color: #000000;">(</span> x, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> elseif nMT > <span style="color: #000000;">0</span><br /> aThreads := array<span style="color: #000000;">(</span> nMT <span style="color: #000000;">)</span><br /> aResults := array<span style="color: #000000;">(</span> N_TESTS <span style="color: #000000;">)</span><br /> mtxJobs := hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> aThreads<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := hb_threadStart<span style="color: #000000;">(</span> <span style="color: #ff0000;">"thTest"</span>, mtxJobs, aResults <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> <span style="color: #00C800;">if</span> ! strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> $ cExclude<br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxJobs, i <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nMT<br /> hb_mutexNotify<span style="color: #000000;">(</span> mtxJobs, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> hb_threadWaitForAll<span style="color: #000000;">(</span> aThreads <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> <span style="color: #00C800;">if</span> aResults<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> != <span style="color: #00C800;">NIL</span><br /> ? dsp_result<span style="color: #000000;">(</span> aResults<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> mtxJobs := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> cNum := strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! cNum $ cExclude<br /> ? dsp_result<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"t"</span> + cNum <span style="color: #000000;">)</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">endif</span><br />#else<br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> N_TESTS<br /> cNum := strzero<span style="color: #000000;">(</span> i, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! cNum $ cExclude<br /> ? dsp_result<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"t"</span> + cNum <span style="color: #000000;">)</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br />#endif<br /><br />nTimes := hb_secondsCPU<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - nTimes<br />nSeconds := seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span> - nSeconds<br /><br /><span style="color: #00C800;">if</span> lScale<br /> ? replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"="</span>,<span style="color: #000000;">76</span><span style="color: #000000;">)</span><br /> ? dsp_scaleResult<span style="color: #000000;">(</span> <span style="color: #ff0000;">" TOTAL "</span>, nTimeTotST, nTimeTotMT, nMT, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> ? replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"="</span>,<span style="color: #000000;">76</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">else</span><br /> ? replicate<span style="color: #000000;">(</span><span style="color: #ff0000;">"="</span>,<span style="color: #000000;">68</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br />? dsp_result<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"total application time:"</span>, nTimes <span style="color: #000000;">}</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br />? dsp_result<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"total real time:"</span>, nSeconds <span style="color: #000000;">}</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br />?<br /><br />remove_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">function</span> f0<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> f1<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> x<br /><br /><span style="color: #00C800;">function</span> f2<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> f3<span style="color: #000000;">(</span>a,b,c,d,e,f,g,h,i<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> f4<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> space<span style="color: #000000;">(</span><span style="color: #000000;">4000</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> f5<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> space<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">function</span> f_prv<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /> memvar PRV_C<br /> <span style="color: #00C800;">private</span> PRV_C := x<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">/*<br />function f_pub(x)<br /> memvar PUB_C<br /> public PUB_C := x<br />return nil<br /><br />function f_stat(x)<br /> static STAT_C<br /> STAT_C := x<br />return nil<br />*/</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> mkBlock<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> &x<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> errorArray<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#ifdef __NO_OBJ_ARRAY__<br /> <span style="color: #00C800;">return</span> array<span style="color: #000000;">(</span><span style="color: #000000;">16</span><span style="color: #000000;">)</span><br />#else<br /> <span style="color: #00C800;">return</span> errorNew<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />#endif<br /><br /><span style="color: #00C800;">static</span> func dsp_result<span style="color: #000000;">(</span> aResult, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> padr<span style="color: #000000;">(</span> <span style="color: #ff0000;">"[ "</span> + <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> aResult<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">56</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" ]"</span>, <span style="color: #000000;">60</span>, <span style="color: #ff0000;">"."</span> <span style="color: #000000;">)</span> + ;<br /> strtran<span style="color: #000000;">(</span> str<span style="color: #000000;">(</span> <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span> aResult<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - nLoopOverHead, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">"."</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">static</span> func dsp_scaleResult<span style="color: #000000;">(</span> cTest, nTimeST, nTimeMT, nMT, nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> .f.<br /> nTimeST := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, nTimeST - nMT * nLoopOverHead <span style="color: #000000;">)</span><br /> nTimeMT := <span style="color: #0000ff;">max</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, nTimeMT - nMT * nLoopOverHead <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> padr<span style="color: #000000;">(</span> <span style="color: #ff0000;">"[ "</span> + <span style="color: #0000ff;">left</span><span style="color: #000000;">(</span> cTest, <span style="color: #000000;">50</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" ]"</span>, <span style="color: #000000;">54</span>, <span style="color: #ff0000;">"_"</span> <span style="color: #000000;">)</span> + ;<br /> str<span style="color: #000000;">(</span> nTimeST, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" "</span> + str<span style="color: #000000;">(</span> nTimeMT, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" ->"</span> + ;<br /> str<span style="color: #000000;">(</span> nTimeST / nTimeMT, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> TMP_FILE <span style="color: #ff0000;">"_tst_tmp.dbf"</span><br /><span style="color: #00C800;">static</span> proc create_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> remove_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> dbcreate<span style="color: #000000;">(</span> TMP_FILE, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"F_C"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">"F_N"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">2</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span><span style="color: #ff0000;">"F_D"</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span><span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> use TMP_FILE exclusive<br /> dbappend<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> field->F_C := dtos<span style="color: #000000;">(</span>date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> field->F_N := <span style="color: #000000;">112345.67</span><br /> field->F_D := date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> dbclosearea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">static</span> proc remove_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ferase<span style="color: #000000;">(</span> TMP_FILE <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">static</span> proc close_db<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> dbclosearea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00C800;">static</span> proc use_dbsh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> use TMP_FILE shared<br /><span style="color: #00C800;">return</span><br /><br />#ifdef __HARBOUR__<br />#ifndef __XHARBOUR__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> hb_version<span style="color: #000000;">(</span> HB_VERSION_CPU <span style="color: #000000;">)</span><br />#endif<br />#endif<br />#ifdef __CLIPPER__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"x86"</span><br />#endif<br />#ifdef FlagShip<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"?"</span><br />#endif<br />#ifdef __CLIP__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"?"</span><br />#endif<br />#ifdef __XPP__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"x86"</span><br />#endif<br />#ifdef __XHARBOUR__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> spd_cpu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #ff0000;">"?"</span><br />#endif<br /><br />#ifdef __CLIPPER__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f. <span style="color: #B900B9;">/* Clipper does not support MT */</span><br />#endif<br />#ifdef FlagShip<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f. <span style="color: #B900B9;">/* FlagShip does not support MT */</span><br />#endif<br />#ifdef __CLIP__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .t. <span style="color: #B900B9;">/* CLIP always uses VM with MT support */</span><br />#endif<br />#ifdef __XPP__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .t. <span style="color: #B900B9;">/* xBase++ always uses VM with MT support */</span><br />#endif<br />#ifdef __XHARBOUR__<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mtvm<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> hb_multiThread<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">/* check for MT support in xHarbour VM */</span><br />#endif<br /><br /><br />#ifndef __MT__<br /><br /> <span style="color: #B900B9;">/* trivial single thread version of once execution */</span><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_threadOnce<span style="color: #000000;">(</span> xOnceControl, bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> lFirstCall := .f.<br /> <span style="color: #00C800;">if</span> xOnceControl == <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">if</span> bAction != <span style="color: #00C800;">NIL</span><br /> eval<span style="color: #000000;">(</span> bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> xOnceControl := .t.<br /> lFirstCall := .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> lFirstCall<br /><br />#else<br /><br /> <span style="color: #B900B9;">/* Add support for MT functions for used compiler<br /> */</span><br /><br />#ifdef __XHARBOUR__<br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mutexSubscribe<span style="color: #000000;">(</span> mtx, nTimeOut, xSubscribed <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> lSubscribed<br /> <span style="color: #00C800;">if</span> valtype<span style="color: #000000;">(</span> nTimeOut <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span><br /> nTimeOut := <span style="color: #0000ff;">round</span><span style="color: #000000;">(</span> nTimeOut * <span style="color: #000000;">1000</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xSubscribed := Subscribe<span style="color: #000000;">(</span> mtx, nTimeOut, @lSubscribed <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> xSubscribed := Subscribe<span style="color: #000000;">(</span> mtx <span style="color: #000000;">)</span><br /> lSubscribed := .t.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> lSubscribed<br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_mutexNotify<span style="color: #000000;">(</span> mtx, xValue <span style="color: #000000;">)</span><br /> Notify<span style="color: #000000;">(</span> mtx, xValue <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> <span style="color: #B900B9;">/* In xHarbour there is race condition in JoinThread() which fails if<br /> * thread have ended before call to JoinThread() so we cannot use it.<br /> * Exactly the same problem exists in GetThreadId().<br /> * As workaround we will use mutexes as thread IDs and notify/subscribe<br /> * mechanism to simulate thread join operation and passing thread return<br /> * value.<br /> */</span><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_threadStart<span style="color: #000000;">(</span> ... <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> thId<br /> thId := hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* For some reasons codeblocks as thread startup entry are broken<br /> * in xHarbour so we use intermediate function instead<br /> */</span><br /> StartThread<span style="color: #000000;">(</span> @_thFuncFirst<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, thId, hb_aParams<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> thId<br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> _thFuncFirst<span style="color: #000000;">(</span> thID, aParams <span style="color: #000000;">)</span><br /> Notify<span style="color: #000000;">(</span> thId, hb_execFromArray<span style="color: #000000;">(</span> aParams <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_threadJoin<span style="color: #000000;">(</span> thId, xResult <span style="color: #000000;">)</span><br /> xResult := Subscribe<span style="color: #000000;">(</span> thId <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .t.<br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_threadWaitForAll<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> WaitForThreads<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> hb_threadOnce<span style="color: #000000;">(</span> xOnceControl, bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">static</span> s_mutex<br /> <span style="color: #00C800;">local</span> lFirstCall := .f.<br /> <span style="color: #00C800;">if</span> s_mutex == <span style="color: #00C800;">NIL</span><br /> s_mutex := hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> xOnceControl == <span style="color: #00C800;">NIL</span><br /> hb_mutexLock<span style="color: #000000;">(</span> s_mutex <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> xOnceControl == <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">if</span> bAction != <span style="color: #00C800;">NIL</span><br /> eval<span style="color: #000000;">(</span> bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> xOnceControl := .t.<br /> lFirstCall := .t.<br /> <span style="color: #00C800;">endif</span><br /> hb_mutexUnlock<span style="color: #000000;">(</span> s_mutex <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> lFirstCall<br /><br /> <span style="color: #0000ff;">init</span> proc once_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* set workareas local to thread */</span><br /> set workarea <span style="color: #00C800;">private</span><br /> <span style="color: #B900B9;">/* initialize mutex in hb_threadOnce() */</span><br /> hb_threadOnce<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* initialize error object to reduce to chance for possible crash<br /> * when two threads try to create new error class simultaneously.<br /> * xHarbour does not have any protection against such situation<br /> */</span><br /> errorNew<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span><br /><br />#endif <span style="color: #B900B9;">/* __XHARBOUR__ */</span><br /><br /><br />#ifdef __XPP__<br /><br />#ifdef __HARBOUR__<br /> <span style="color: #B900B9;">/* for testing. Harbour also can use xBase++ API in this code */</span><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbclass.ch"</span><br />#endif<br /><br /> <span style="color: #0000ff;">INIT</span> PROCEDURE once_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* initialize sync object in hb_threadOnce() */</span><br /> hb_threadOnce<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><br /><br /> <span style="color: #00C800;">CLASS</span> Notifier<br /> <span style="color: #00C800;">PROTECTED</span>:<br /> <span style="color: #0000ff;">VAR</span> aQueue<br /> <span style="color: #0000ff;">VAR</span> oSignal<br /> EXPORTED:<br /> <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">init</span><br /> SYNC <span style="color: #00C800;">METHOD</span> notify<br /> SYNC <span style="color: #00C800;">METHOD</span> subscribe<br /> <span style="color: #00C800;">ENDCLASS</span><br /><br /> <span style="color: #00C800;">METHOD</span> Notifier:<span style="color: #0000ff;">init</span><br /> ::<span style="color: #000000;">aQueue</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> ::<span style="color: #000000;">oSignal</span> := Signal<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">self</span><br /><br /> <span style="color: #00C800;">METHOD</span> Notifier:<span style="color: #000000;">notify</span><span style="color: #000000;">(</span> xValue <span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> ::<span style="color: #000000;">aQueue</span>, xValue <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oSignal</span>:<span style="color: #000000;">signal</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">self</span><br /><br /> <span style="color: #00C800;">METHOD</span> Notifier:<span style="color: #000000;">subscribe</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> xResult<br /> <span style="color: #00C800;">WHILE</span> Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aQueue</span> <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oSignal</span>:<span style="color: #000000;">wait</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /> xResult := ::<span style="color: #000000;">aQueue</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> ADel<span style="color: #000000;">(</span> ::<span style="color: #000000;">aQueue</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> ASize<span style="color: #000000;">(</span> ::<span style="color: #000000;">aQueue</span>, Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aQueue</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> xResult<br /><br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_mutexSubscribe<span style="color: #000000;">(</span> mtx, nTimeOut, xResult <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* Ignore timeout - it's not used in this test */</span><br /> xResult := mtx:<span style="color: #000000;">subscribe</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> .T.<br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_mutexNotify<span style="color: #000000;">(</span> mtx, xValue <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> mtx:<span style="color: #000000;">notify</span><span style="color: #000000;">(</span> xValue <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_mutexCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> Notifier<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">CLASS</span> Once<br /> EXPORTED:<br /> <span style="color: #000000;">SYNC</span> <span style="color: #00C800;">METHOD</span> onceDo<br /> <span style="color: #00C800;">ENDCLASS</span><br /><br /> <span style="color: #00C800;">METHOD</span> Once:<span style="color: #000000;">onceDo</span><span style="color: #000000;">(</span> xOnceControl, bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> lFirstCall := .f.<br /> <span style="color: #00C800;">IF</span> xOnceControl == <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">IF</span> bAction != <span style="color: #00C800;">NIL</span><br /> Eval<span style="color: #000000;">(</span> bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> xOnceControl := .t.<br /> lFirstCall := .t.<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">RETURN</span> lFirstCall<br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_threadOnce<span style="color: #000000;">(</span> xOnceControl, bAction <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">STATIC</span> s_oObject := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">IF</span> s_oObject == <span style="color: #00C800;">NIL</span><br /> s_oObject := Once<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">RETURN</span> s_oObject:<span style="color: #000000;">onceDo</span><span style="color: #000000;">(</span> @xOnceControl, bAction <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_threadStart<span style="color: #000000;">(</span> cFunc, xPar1, xPar2, xPar3 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oThread<br /> oThread := Thread<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oThread:<span style="color: #000000;">start</span><span style="color: #000000;">(</span> cFunc, xPar1, xPar2, xPar3 <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> oThread<br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_threadJoin<span style="color: #000000;">(</span> oThread, xResult <span style="color: #000000;">)</span><br /> oThread:<span style="color: #000000;">synchronize</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> xResult := oThread:<span style="color: #000000;">result</span><br /> <span style="color: #00C800;">RETURN</span> .T.<br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_threadWaitForAll<span style="color: #000000;">(</span> aThreads <span style="color: #000000;">)</span><br /> ThreadWaitAll<span style="color: #000000;">(</span> aThreads <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />#endif <span style="color: #B900B9;">/* __XPP__ */</span><br /><br /><br /><span style="color: #B900B9;">/*<br /> static function hb_threadStart( cFunc, xPar1, xPar2, xPar3 )<br /> return nil<br /><br /> static function hb_threadJoin( thId, xResult )<br /> return nil<br /><br /> static function hb_mutexCreate()<br /> return nil<br /><br /> static function hb_mutexSubscribe()<br /> return nil<br /> static function hb_mutexLock()<br /> return nil<br /> static function hb_mutexUnlock()<br /> return nil<br /> static function hb_mutexNotify()<br /> return nil<br /> static function hb_threadWaitForAll()<br /> return nil<br /> static function hb_mtvm()<br /> return .f.<br />*/</span><br /><br />#endif<br /><br />#ifdef FlagShip<br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> fs_seconds<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> LOCAL_DOUBLE nret := <span style="color: #000000;">0</span><br /> #Cinline<br /> <span style="color: #000000;">{</span><br /> <span style="color: #00D7D7;">#include</span> <sys/time.h><br /> struct timeval tv;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> gettimeofday<span style="color: #000000;">(</span>&tv, <span style="color: #00C800;">NULL</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> nret = <span style="color: #000000;">(</span>double<span style="color: #000000;">)</span> tv.tv_sec + <span style="color: #000000;">(</span>double<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>tv.tv_usec<span style="color: #000000;">)</span> / <span style="color: #000000;">1000000</span>;<br /> <span style="color: #000000;">}</span><br /> #endCinline<br /> <span style="color: #00C800;">return</span> nret<br /> #ifndef FlagShip5<br /> <span style="color: #00C800;">FUNCTION</span> cursesinit<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> #endif<br />#endif<br /> </div>[/code:3cmsqr0u]
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
Antonio,
what about 32 bit version of BCC? I'm using 7.1 and didn't notice any speed decreasing.
EMG
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
I will have to deactivate my antivirus while running speedtst.exe.
It is deleted after starting it....
I will do it later...
|
BCC 7.0 64 is almost double fast as BCC 7.1 64
|
Enrico,
Yesterday Manuel Alvarez commented me that there is a LLVM\Clang based version of BCC32 which
may be much faster than BCC32:
[quote:2yat79ch]
<!-- m --><a class="postlink" href="http://docwiki.embarcadero.com/RADStudio/Seattle/en/What's_New">http://docwiki.embarcadero.com/RADStudi ... What's_New</a><!-- m -->
C++ Compilers
New Clang-enhanced C++ Compiler for 32-bit Windows
[b:2yat79ch]BCC32C is a Clang-enhanced C++ compiler for 32-bit Windows[/b:2yat79ch]. BCC32C allows you to take advantage of many C++11 features, and it makes it easier to maintain a single code base to target both 32-bit and 64-bit Windows.
BCC32C does not replace BCC32; RAD Studio lets you choose which compiler you want to use for each of your projects. BCC32 is the default C++ compiler for 32-bit Windows. To switch a project to BCC32C, select Project > Options > C++ Compiler and, under Classic Compiler, disable the "Use 'classic' Borland compiler" option.[/quote:2yat79ch]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.