topic
stringlengths
1
63
text
stringlengths
1
577k
Append SDF fails
Vytas, APPEND command is a Harbour/xHarbour feature, not a FWH capability. Please try again with this current builds: <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour.exe">www.fivetechsoft.com/files/harbour.exe</a><!-- w --> <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/xharbour.exe">www.fivetechsoft.com/files/xharbour.exe</a><!-- w --> You will need an upgraded FWH 2.7 version for them, but you may build a console mode (MsDos alike) test to check APPEND behavior.
Append SDF fails
Usually this is caused by a number being to large for the field. Perhaps Clipper just truncated it without giving an error. James
Appl. DISPLAY-MODE-selection at startup ( DOWNLOAD )
Hello, A sample, how to select a Aplication STARTUP-mode ( display ) It is a seperated / extracted stand alone part of another tool. You can define any of the 3 DISPLAY-modes. Moving the bars, the new position is saved to a INI-file as well the selected style. Some buttons just display a Message ( Image and Print-buttons ) 1. normal full screen-display 2. a HORIZONTAL bar can be displayed on any desktop screen-position 3. a VERTICAL bar can be displayed on any desktop screen-position from inside of the different styles, You can switch / change to another mode. Download ( full source ) <!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/mode1.zip">http://www.pflegeplus.com/fw_downloads/mode1.zip</a><!-- m --> normal display [img:jwomwpqq]http&#58;//www&#46;pflegeplus&#46;com/pictures/mode1&#46;jpg[/img:jwomwpqq] the horizontal bar displayed on desktop [img:jwomwpqq]http&#58;//www&#46;pflegeplus&#46;com/pictures/mode2&#46;jpg[/img:jwomwpqq] the vertical bar displayed on desktop [img:jwomwpqq]http&#58;//www&#46;pflegeplus&#46;com/pictures/mod3&#46;jpg[/img:jwomwpqq] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Apple Seeds Golden Master of OS X Mountain Lion to Developer
[url:2j5zq6v6]http&#58;//www&#46;macrumors&#46;com/2012/07/09/apple-seeds-golden-master-of-os-x-mountain-lion-to-developers/[/url:2j5zq6v6] build 12A269
Apple WWDC 2006
<!-- m --><a class="postlink" href="http://events.apple.com.edgesuite.net/aug_2006/event/index.html">http://events.apple.com.edgesuite.net/a ... index.html</a><!-- m --> <!-- m --><a class="postlink" href="http://www.apple.com/macosx/leopard/timemachine.html">http://www.apple.com/macosx/leopard/timemachine.html</a><!-- m -->
Apple anuncia el nuevo lenguaje Swift
Apple anuncia el nuevo lenguaje Swift. Para los curiosos también edita una guía de programación gratis que se puede bajar aquí : <!-- m --><a class="postlink" href="https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11&at=10l3N7">https://itunes.apple.com/us/book/swift- ... &at=10l3N7</a><!-- m --> Algunas características : println("Hello, world") no necesitamos el punto y coma a final de linea ( como en harbour). declaración de variables y operaciones "en linea" “let apples = 3 let oranges = 5 let appleSummary = "I have \(apples) apples." let fruitSummary = "I have \(apples + oranges) pieces of fruit.” Declaración de funciones : func greet(name: String, day: String) -> String { return "Hello \(name), today is \(day)." } greet("Bob", "Tuesday")”
Apple anuncia el nuevo lenguaje Swift
Manuel, El libro no se puede descargar desde un ordenador Windows ? No hay un resumen detallado de la sintaxis del lenguaje ? A toda la gente que lleva ya algunos años programando en Obj-C les va a hacer poca gracia tener que reescribir todo... (salvo que este lenguaje sea opcional y se pueda seguir usando Obj-C)
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":dqv3yu4v]Manuel, El libro no se puede descargar desde un ordenador Windows ? No hay un resumen detallado de la sintaxis del lenguaje ? [/quote:dqv3yu4v] La descarga es a formato ibook de apple , no se si se puede pasar a un pdf ( supongo que si ) . Lo miro cuando pueda y si puedo pasarlo ( son unas 350 paginas o mas ) pongo un enlace para descargarlo . ------------ edito -------------------- <!-- m --><a class="postlink" href="https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/LandingPage/index.html">https://developer.apple.com/library/pre ... index.html</a><!-- m --> [quote="Antonio Linares":dqv3yu4v]Manuel, A toda la gente que lleva ya algunos años programando en Obj-C les va a hacer poca gracia tener que reescribir todo... (salvo que este lenguaje sea opcional y se pueda seguir usando Obj-C)[/quote:dqv3yu4v] Pueden convivir sin ningún problema tanto objective-c como C , lo que no tengo claro es si tiene que ser en módulos separados o no . supongo que lo desarrollado ya se quedará en objective-c . Intentaré instalar un yosemite en un disco externo y en el el xcode 6 en los proximos dias y ya iré contando. Los programadores se tienen que estar ahorcando :- ) , nuevo lenguaje , 4000 nuevas aPis , nuevas funciones colaborativas ... pa morirse.
Apple anuncia el nuevo lenguaje Swift
Manuel, Gracias por tu ayuda como siempre. [quote:11kfjez6]Los programadores se tienen que estar ahorcando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> , nuevo lenguaje , 4000 nuevas aPis , nuevas funciones colaborativas ... pa morirse.[/quote:11kfjez6] Bienvenidos al progreso: "tire todo a la basura cada x tiempo y empiece de cero, que hemos cambiado de idea nuevamente" <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Afortunadamente muchos de nosotros aprendimos hace mucho tiempo que con Clipper se puede hacer de todo y por eso construimos nuestro propio compilador Harbour, y a los "ingenieros" de todas esas empresas, que sigan inventando lo que quieran, que a nosotros no nos asusta, porque con Harbour somos invencibles <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
Antonio, totalmente de acuerdo He conseguido un Mac Mini de segunda mano y ahí estoy introduciéndome en este mundillo
Apple anuncia el nuevo lenguaje Swift
Cristobal, Si necesitas ó te apetece FiveMac solo tienes que decirlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Con todo lo que ayudas en estos foros, tienes lo que quieras a tu disposición. Y la verdad que es una experiencia realmente bonita ver como Harbour funciona en cualquier sistema operativo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
[url:1ppbr34n]https&#58;//developer&#46;apple&#46;com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour&#46;html#//apple_ref/doc/uid/TP40014097-CH2-XID_1[/url:1ppbr34n]
Apple anuncia el nuevo lenguaje Swift
Mas noticias... Ya tengo instalado yosemite beta 1 y xcode 6 beta1 .... El nuevo sistema ... feo de narices . No me gusta .Un Doc plano sin opción a cambio , unas ventanas semi transparentes estilo windows Vista con aéreo , unas carpetas en color azul semitrasparentes horribles . Han quitado la pantalla de widgets . Para ser una Beta1 no fallan demasiadas cosas . La libreria de fivemac no me regenera completa por un error en unas cabeceras , pero siendo una beta puede ser normal ( ya me paso con la beta de xcode 5 ) . Usando las librerías generadas en Maverisks para 10.9 con el build.sh de samples los ejemplos se generan sin problemas y en un primer vistazo funcionan perfectamente. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Parece que fivemac seguirá funcionando en este nuevo sistema . En cuanto pueda subo unas imágenes para que lo veáis.
Apple anuncia el nuevo lenguaje Swift
Manuel, gracias!!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
Primeras imagenes : [img:2bjj5dv9]http&#58;//i62&#46;tinypic&#46;com/ie1qo4&#46;png[/img:2bjj5dv9] [img:2bjj5dv9]http&#58;//i57&#46;tinypic&#46;com/dnzryp&#46;png[/img:2bjj5dv9]
Apple anuncia el nuevo lenguaje Swift
Para los que no lo sepan la primera imagen que muestra Manuel es una aplicación construida con Harbour y FiveMac <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
Seguimos adelante . Ya esta resuelto el problema y ya reconstruyo las librerías de fivemac con sdk 10.10 .Salen algunas alertas , sobretodo por cosas como los alloc que al ser ahora la gestión de memoria automática sobran . Compilo los ejemplos sin gran problema así que Fivemac sigue funcionando en el Nuevo sistema de Apple . Toca investigar como usar la nueva api rescata en swift , que es mucho mas concisa en código y según dice la propia Apple mas rápida y eficiente . Pongo otra nueva imagen con el programa de Jose Luis ( Alanit ) recompilado con sdk 10.10 en el Yosemite . [img:1z5ug7py]http&#58;//i58&#46;tinypic&#46;com/1pxtlj&#46;png[/img:1z5ug7py]
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":gbc9f0ny]Cristobal, Si necesitas ó te apetece FiveMac solo tienes que decirlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Con todo lo que ayudas en estos foros, tienes lo que quieras a tu disposición. Y la verdad que es una experiencia realmente bonita ver como Harbour funciona en cualquier sistema operativo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:gbc9f0ny] Antonio, muchas gracias por tus palabras Ando muy muy liado últimamente, pero ten por seguro que pronto tendrás noticias mias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Aun no he tenido tiempo con el mac mini nada más que para echarle un vistazo por encima y empezar a instalarle un poco de software
Apple anuncia el nuevo lenguaje Swift
Personalmente estoy perdiendo el interés en Apple porque no me gusta la filosofía que mueve la compañia desde hace ya bastante tiempo. Me gustaba el Steve Jobs solo, sentado en el suelo de una habitación, sin nada (cuando le echaron de Apple). Ese es el auténtico Steve Jobs, y aunque no le conocí lo suficiente para hablar de él, pero a los hombres se les conoce por sus obras, y lo que ahora es Apple y simboliza, ya no me gusta. Me parece una empresa que no es solidaria con el mundo: hacer que la juventud pague esos precios desorbitados, haciendo crecer el deseo en la juventud de poner su dinero en objetos materiales y no en ayudar a otros. Cuando veo a un chico joven con un iphone me apena que sea esa su consciencia, en solo él mismo, de ahí lo de la letra i en todos los nombres de sus productos: Yo, yo, yo... Hay tanta gente necesitada, hay tanto por hacer en el mundo. Que sentido tiene promover más y más materialismo ? Ahora uso un Android, que me costó unos 120 euros y me parece suficientemente bueno como smartphone y no me siento participe de ese colectivo de ciegos que solo valoran el éxito empresarial y rinden culto al dinero. El dinero es como la comida: que no te falte y cuida que no te sobre o engordarás <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Y no niego que trabajo con ordenadores Apple, pero los compro de segunda mano cuando su precio es razonable.
Apple anuncia el nuevo lenguaje Swift
En memoria de un hombre que se atrevió a ser él mismo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Toda crisis es un renacer, y el Steve Jobs solo, despedido de su propia empresa, renació más fuerte que antes, más completo. [img:3msqedxg]http&#58;//img&#46;brajeshwar&#46;com/steve-jobs-at-home-1982&#46;jpg[/img:3msqedxg]
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":1468dfxa]Cristobal, Si necesitas ó te apetece FiveMac solo tienes que decirlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [/quote:1468dfxa] [url=http&#58;//postimg&#46;org/image/646xmppqt/full/:1468dfxa][img:1468dfxa]http&#58;//s26&#46;postimg&#46;org/ytttjctqx/20140620_233720&#46;jpg[/img:1468dfxa][/url:1468dfxa] Antonio, ya estoy en disposición de poder probarlo Por cierto, la fotografía del post anterior es "im presionante", todo un libro expresado en una sola imagen Gracias anticipadas
Apple anuncia el nuevo lenguaje Swift
Cristobal, Te envio las claves para su descarga por email. Lo primero que tienes que hacer (es obvio, pero es bueno explicarlo): 1. Tienes que descargar Harbour desde su repositorio (puedes usar GIT si vas a actualizarlo en el futuro, ó simplemente descarga el ZIP que lo contiene: [url:1jvthbjr]https&#58;//github&#46;com/harbour/core/archive/master&#46;zip[/url:1jvthbjr] 2. Tienes que instalar xcode (viene en el DVD de instalación de Apple). 3. Ve a la carpeta de Harbour y ejecuta "make"
Apple anuncia el nuevo lenguaje Swift
Otra información que puede serte útil: 1. Existe una versión de UEStudio para Mac que funciona muy bien. 2. Fuimos capaces de adaptar "Scintilla" a Mac y FiveMac y tienes un editor de código fuente en la carpeta de samples. No está al 100 % pero igual te animas y nos ayudas a completarlo un poco (y asi no hay que usar UEStudio) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> 3. Para los "enganchados" al Total Commander (como yo), tienes varias opciones. Yo empecé usando uno comercial (Disk Order), pero luego pasé a uno libre que va muy bien. A ver si me acuerdo del nombre, jeje <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (nuCommander?). Editado: muCommander. 4. Tienes FiveDBU.prg (para administrar las bases de datos). Creo recordar que estaba bastante avanzado. Si me acuerdo de algún detalle más, te voy contando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
Antonio - XCode instalado En windows, para generar Harbour utilizo Win-make.exe Cual es el fichero "make" en la distribucion de harbour core-master.zip qué he de ejecutar? La versión de harbour que he descargado con FiveMac, es muy antigua?
Apple anuncia el nuevo lenguaje Swift
Tiene su tiempo pero yo la siguo usando . He intentado generar nuevas versiones de harbour pero no me funcionan tan bien como esta: Harbour 3.2.0dev (r1401290838) Copyright (c) 1999-2014, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Si la necesitas te la pongo para descarga . Que xCode has puestos el 4.3 ? Felicidades por el S.O. el snow leopard aunque con algunos años ya es el Xp de los macosx . Estable , rápido , efectivo . Com menos "alardes" que los siguientes sistemas muchos han vuelto a él . Cualquier cosa , o duda que podamos resolverte aquí estamos .
Apple anuncia el nuevo lenguaje Swift
Como veo la version del XCode? Disculpa, pero esto es como empezar a andar Si me facilitas la vers. de harbour, muy agradecido, aunque de todas formas también quisiera aprender a generarla Seguire dando la lata
Apple anuncia el nuevo lenguaje Swift
Esto es generico para todos los programas de Macosx ... Barra superior -> primer menu ( el del nombre del progarama ) -> primera opción Acerca de -> ahi te da la información de versión . Te pongo el harbor para descarga , no se como funcionará en snowleopard ya que esta generado en 64 bits y leopard es justo la transición ( mitad y mitad) <!-- m --><a class="postlink" href="https://dl.dropboxusercontent.com/u/132931/harbour.zip">https://dl.dropboxusercontent.com/u/132931/harbour.zip</a><!-- m --> Para generar es tan fácil como descargarse la distribución , entrar en el terminal ir a la carpeta raíz de las distro y escribir make .
Apple anuncia el nuevo lenguaje Swift
ahora tengo que irme , cuando vuelva miro si has dado con ello , si no lo consigues tranquilo al principio uno está un poco perdido pero en unas horas se pilla el truco y luego es una delicia . Saludos.
Apple anuncia el nuevo lenguaje Swift
[quote="mastintin":3avw6iwp] Para generar es tan fácil como descargarse la distribución , entrar en el terminal ir a la carpeta raíz de las distro y escribir make .[/quote:3avw6iwp] Ahora, parece que si lo estoy generando, es que lo intentaba desde el "explorador" y no encontraba el "make" <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Me da muchos, muchos warnings, y varios Error "Dependencia no encontrada", imagino que será al generar determinadas librerias de terceros
Apple anuncia el nuevo lenguaje Swift
[quote="mastintin":1mn48n1l] Que xCode has puestos el 4.3 ? Felicidades por el S.O. el snow leopard aunque con algunos años ya es el Xp de los macosx . Estable , rápido , efectivo . Com menos "alardes" que los siguientes sistemas muchos han vuelto a él . [/quote:1mn48n1l] Manuel [quote:1mn48n1l] Version: 3.2 (10D575) Location: /Developer Applications: Xcode: 3.2 (1610) Interface Builder: 3.2 (732) Instruments: 2.0 (1095) Dashcode: 3.0 (328) SDKs: Mac OS X: 10.4: (8S2167) 10.5: (9J61) 10.6: (10D574)[/quote:1mn48n1l] Es esto, verdad? Lo he actualizado a la vers. 3.2.6 En cuanto al S.O,, he intentado actualizarlo, pero los requerimientos de hard no me lo permite (ya veremos, porque me parece que solo es cuestion de RAM)
Apple anuncia el nuevo lenguaje Swift
Cristobal, Si deseas construir Harbour en OSX por ti mismo (es lo más indicado) haz lo siguiente: 1. Descarga el repositorio completo de Harbour (si no te planteas ir actualizándolo, y asi no tienes que usar GIT): [url:j4jdb5co]https&#58;//github&#46;com/harbour/core/archive/master&#46;zip[/url:j4jdb5co] 2. Descomprímelo en una carpeta llamada harbour 3. Ve a la carpeta y ejecuta (desde una ventana de consola): make Con esos 3 pasos Harbour debe construirse sin problemas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
Construir harbour ya lo he conseguido Me crea dentro de bin y de lib carpetas Darwin/cLang (normal al igual que cuando lo construyes bajo windows crea la carpeta win/<compilador>) Pero, no soy capaz de crear la aplicacion tutor01.prg -> tutor01(.exe) o como se llame aqui <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Me dice: -bash: build.sh: command not found
Apple anuncia el nuevo lenguaje Swift
Cristobal, Una vez lo tengas construido, puedes cambiar de carpeta los ficheros siguiendo la típica forma de Clipper: bin, include, lib. Ahora ve a la carpeta samples de FiveMac y haz: chmod +x build.sh y entonces ya puedes hacer: ./build.sh tutor01 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":2vijj3ps]Otra información que puede serte útil: 1. Existe una versión de UEStudio para Mac que funciona muy bien. 2. Fuimos capaces de adaptar "Scintilla" a Mac y FiveMac y tienes un editor de código fuente en la carpeta de samples. No está al 100 % pero igual te animas y nos ayudas a completarlo un poco (y asi no hay que usar UEStudio) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Si me acuerdo de algún detalle más, te voy contando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2vijj3ps] Antonio, ya tengo el AutoIndent, y algunas cosillas más, pero aún le queda un pelin (esto es en Window, aunque me imagino que podremos pasarlo tambien a Mac) [url=http&#58;//postimage&#46;org/:2vijj3ps][img:2vijj3ps]http&#58;//s26&#46;postimg&#46;org/yl5fkwvq1/Pant211&#46;png[/img:2vijj3ps][/url:2vijj3ps]
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":21q09ul6]Cristobal, Una vez lo tengas construido, puedes cambiar de carpeta los ficheros siguiendo la típica forma de Clipper: bin, include, lib. Ahora ve a la carpeta samples de FiveMac y haz: chmod +x build.sh y entonces ya puedes hacer: ./build.sh tutor01 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:21q09ul6] Estaba mirando el tema de los permisos pero me ha despistado porque al hacer el ls -l me habia dado la sensacion que ese atributo estaba en ese fichero Bueno, ya lo he conseguido, pero me da el siguiente mensaje [quote:21q09ul6] compiling... Harbour 3.2.0dev (r1406161338) Copyright (c) 1999-2014, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Compiling 'tutor01.prg'... Lines 1368, Functions/Procedures 1 Generating C source output to 'tutor01.c'... Done. compiling C module... linking... ld: warning: directory '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib' following -L not found done! Mac-mini-de-Cristobal-Navarro:samples cristobalnavarro$ [/quote:21q09ul6] Lo del MacOSX10.6.sdk lo he puesto yo (antes ponia 10.7) a ver si era eso, pero me da el mismo mensaje Gracias de nuevo
Apple anuncia el nuevo lenguaje Swift
[quote="cnavarro":1kbrhyx5] ld: warning: directory '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib' following -L not found done! Gracias de nuevo[/quote:1kbrhyx5] Tienes que editar el build.sh . Te explico el error para que sepas el porque y como se soluciona : Los programas en macosx no son como en windows un binario ejecutable . en Macosx realmente son una carpeta con extension .app que contiene dentro los distintos elementos del programa : binarios ,archivos plist ( equivalentes a ini ) , los recursos nib ( equivalentes a los res ) , los iconos , etc . Si quieres verlo es tan simple como colocarte encima del archivo app ->botón derecho del raton_> ver contenido . El archivo build.sh ( equivale al bat de windows) está buscando la libreria del sdk 10.6 el el path que te indica . Bien eso es correcto en las últimas versiones de macosx ( a partir de Mountain Lion ) ya que apple decidió que la aplicación xcode se instalase como las demás aplicaciones dentro de la carpeta aplicaciones y dentro de él ( en la carpeta mencionada ) tiene todos los archivos necesarios para funcionar , incluyendo las librerías y demás . Fijate en la ruta Aplicaciones-> xcode -> carpeta content -> carpeta developper , etc.... Anteriormente ( tu caso y en el lion por ejemplo ) el xcode se instalaba en una carpeta que se encuentra en raíz del disco llamada Developer y dentro de ella tienes distintas carpetas , una de programas y otras con los sdk etc .pero no contenidas dentro del propio xcode . tu path tendria que ser ( y lo digo de memoria ) algo así como : SDKPATH=/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
Apple anuncia el nuevo lenguaje Swift
Manuel Muchas gracias por tan completa explicacion, voy a probar
Apple anuncia el nuevo lenguaje Swift
En otro orden de cosas comentarte que no te merece la pena pasarte a Lion , yo tengo un macbook de los blanquitos de esa misma época pasado a Lion y no digiere el sistema igual de bien que con Snow Leopard . Es el ordenador que usa mi hija y si no fuera por eso, le volvería a poner Snow . La versión de xcode que tienes es suficiente para construir programas "normales" para mac y tiene la ventaja que le puedes poner unos archivos para que reconozca los archivos pro como de idioma harbour y coloree la sintaxis de harbour .
Apple anuncia el nuevo lenguaje Swift
Manuel, en mi caso [quote:1eqcc4n5]SDKPATH=/Developer/SDKs/MacOSX10.6.sdk[/quote:1eqcc4n5] Perfecto Gracias
Apple anuncia el nuevo lenguaje Swift
Como resumen de mis primeras impresiones: - Realmente estoy asombrado ante la facilidad de uso de estas máquinas, a pesar de haber tenido que aprender un poco de los nuevos comandos en modo consola. - Otro punto a favor de Antonio (y todo el equipo de Fivetech), ha sido instalar y funcionar en muy poco tiempo (esta mañana cuando empecé no podía imaginar que en muy pocas horas ya lo hubiese probado, y a estas alturas del día ya pudiese crear mis programas) - No puedo olvidar lo sencillo que ha sido generar harbour para Mac (ningún problema) - El único problemilla ha sido la versión de S.O que tengo (una versión más antigua que la que se debió usar para configurar los .sh que aparecen en FiveMAc), y tener presente aspectos como los "permisos" a los ficheros a los que los usuarios de Window no estamos acostumbrados. - Si no fuese por el apunte que realizó Antono en otro post acerca del precio y política de ventas de la "manzanita", que suscribo al 100% por 100%, no dudaría en cambiar de equipos (no se oye nada, nada, por ejemplo, y estamos hablando de un equpo ya con sus años). - Aún me quedan probar muchos aspectos como las bases de datos, etc, aunque he leído post en los que Daniel también ha dado soporte para poder usar TDolphin en Mac. - Y sin duda contar con el gran apoyo que me han ofrecido (como siempre) desde el foro Antonio y Manuel (mi más sincero agradecimiento) Seguiré probando características de FiveMac, e intentaré seguir comentando los avances que haga, por si a alguno le sirve en el futuro
Apple anuncia el nuevo lenguaje Swift
[quote="mastintin":4qju9a86]En otro orden de cosas comentarte que no te merece la pena pasarte a Lion , yo tengo un macbook de los blanquitos de esa misma época pasado a Lion y no digiere el sistema igual de bien que con Snow Leopard . Es el ordenador que usa mi hija y si no fuera por eso, le volvería a poner Snow . La versión de xcode que tienes es suficiente para construir programas "normales" para mac y tiene la ventaja que le puedes poner unos archivos para que reconozca los archivos pro como de idioma harbour y coloree la sintaxis de harbour .[/quote:4qju9a86] Manuel, gracias por el consejo Era un tema ( cambio de versión) que me lleva comiendo el coco todo el dia Esos ficheros de sintaxis y coloreado dónde se ubican?
Apple anuncia el nuevo lenguaje Swift
[quote="cnavarro":pqkpetx3] Esos ficheros de sintaxis y coloreado dónde se ubican?[/quote:pqkpetx3] Te envio un enlace a un zip que tiene 2 archivos dentro. <!-- m --><a class="postlink" href="https://dl.dropboxusercontent.com/u/132931/fivephone.zip">https://dl.dropboxusercontent.com/u/132 ... ephone.zip</a><!-- m --> Como ves los dos archivos ponen fivephone.* , uno tiene extension pbfilespec le dice a xcode que tipo de archivos son los prg y a que idioma pertenecen . Lo puedes editar con un editor de texto y donde pone fivephone poner fivemac y lo mismo en su nombre . El otro archivo xclangspec le dice a xcode las peculiaridades de lenguaje , ese archivo se cogió de otro idioma y se ha intentado adaptar, pero esta sin terminar ni depurar por lo que tiene muchas palabras claves por borrar y otras muchas por añadir . puedes hacer como con el otro, renombrarlo a fivemac y cambiar las palabras fivephone a fivemac editándolo . Tambien puedes dejarlo tal cual y que ponga que el lenguaje es fivephone ( es lo mismo ) . Esos dos archivos se tiene que colocar en : /Users/tu_usuario/Library/Application Support/Developer/Shared/Xcode/Specifications/ Si no ves la carpeta libreria en tu usuario es porque puede ser una carpeta oculta ( algunas versiones de macosx la tienen oculta y otras no ) . Si no la ves puedes acceder a ella en el finder ,menu -> ir-> ir a carpeta -> escribes la ruta /Users/tuUsuario/Library. si la ves entra en ella y sigue la ruta .Puede que las ultimas carpetas de la ruta no las tengas . Si no tienes esas carpetas créalas y colocalos en ella . Reinicia xcode y listo . Esto en las nuevas versiones de xcode ya no funciona así que tu versión es una ventaja .
Apple anuncia el nuevo lenguaje Swift
Cristobal, Me ha encantado el pantallazo que has puesto de tu trabajo en el editor de código. Muy bueno <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Steve Jobs estaba obsesionado con eliminar la "contaminación acústica" que hacen los ordenadores y cuando te acostumbras al "silencio" que tienen sus ordenadores, ya no puedes volver a un pc convencional <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Harbour es una maravilla, ya lo estás viendo. Tenemos un compilador que funciona en cualquier sistema operativo y que no depende de ninguna empresa que nos pueda dejar "tirados" como hizo CA (menudo regalazo nos hicieron, porque gracias a su actitud, hoy existe Harbour) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Disfrútalo! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Si quieres acceso al repositorio de FiveMac para subir cambios, etc. sólo tienes que decirlo <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Apple anuncia el nuevo lenguaje Swift
[quote="Antonio Linares":2u68mmsm]Cristobal, Me ha encantado el pantallazo que has puesto de tu trabajo en el editor de código. Muy bueno <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Steve Jobs estaba obsesionado con eliminar la "contaminación acústica" que hacen los ordenadores y cuando te acostumbras al "silencio" que tienen sus ordenadores, ya no puedes volver a un pc convencional <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Harbour es una maravilla, ya lo estás viendo. Tenemos un compilador que funciona en cualquier sistema operativo y que no depende de ninguna empresa que nos pueda dejar "tirados" como hizo CA (menudo regalazo nos hicieron, porque gracias a su actitud, hoy existe Harbour) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Disfrútalo! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Si quieres acceso al repositorio de FiveMac para subir cambios, etc. sólo tienes que decirlo <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->[/quote:2u68mmsm] Antonio Harbour es un logro al que creo que no se le da la importancia que tiene, siempre lo he pensado, y sabemos por qué Gracias por todo, porque disfrutar estoy disfrutando, es la verdad En cuanto a tu ofrecimiento, gracias, por supuesto que estoy dispuesto.
Apple iPad UI walkthrough
[url:w8dw7zo7]http&#58;//www&#46;viddler&#46;com/explore/engadget/videos/1300/170&#46;541[/url:w8dw7zo7]
Applicaciones FWPPC en segundo plano
FWPPC, por defecto, no permite que las aplicaciones se ejecuten en segundo plano para evitar que el usuario pueda creer que la ha cerrado y en realidad sigue abierta. Este ejemplo muestra como permitir que una aplicación FWPPC se ejecute en segundo plano: [code=fw:3a4bxlz6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fwce.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"winapi.ch"</span><br /> <br /><span style="color: #00D7D7;">#define</span> SW_MINIMIZE  <span style="color: #000000;">6</span><br /> <br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />   <span style="color: #00C800;">local</span> oWnd := TMyWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Click to exit"</span>,, nOr<span style="color: #000000;">&#40;</span> WS_CAPTION, WS_SYSMENU <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> <br />   oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,,,, <span style="color: #000000;">&#123;</span> || MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Want to end ?"</span>, <span style="color: #ff0000;">"Please select"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <br /><span style="color: #00C800;">CLASS</span> TMyWindow <span style="color: #0000ff;">FROM</span> TWindow<br /> <br />   <span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span> nID <span style="color: #000000;">&#41;</span><br /> <br /><span style="color: #00C800;">ENDCLASS</span><br /> <br /><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TMyWindow<br /> <br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />      <span style="color: #00C800;">case</span> nMsg == WM_CLOSE<br />           ShowWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, SW_MINIMIZE <span style="color: #000000;">&#41;</span><br />           <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />   <br />      <span style="color: #00C800;">case</span> nMsg == WM_SIZE<br />           <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>           <br />   <span style="color: #00C800;">endcase</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span>      <br /> <br /><span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span> nID <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TMyWindow<br /> <br />   <span style="color: #00C800;">DEFAULT</span> nID := <span style="color: #000000;">0</span><br /> <br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lValid</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      DestroyWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">nResult</span> = nID<br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />   <span style="color: #00C800;">endif</span>   <br />   <br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>      <br /> </div>[/code:3a4bxlz6]
Application Slowdown
Hi, I dont think this is a FiveWin problem, but I will ask the question here.. At one of my customers (who have 6 installations), my application gets slower and slower as they use it through the day - if they go out of the application and go back in the application runs at normal speed. They cannot tell me what causes the slowdown as they do many things in the application. Is there any reporting tools to see what could be causing the slowdown (memory/resources etc) I'm not expecting a "do this to fix" response, just ideas I have posted this on the xHarbour forums but havent had any replies I'm using xHarbour commercial June 2010 & SQLRDD , FWH 06.10 Any ideas would be appreciated Best regards, Pete
Application Slowdown
Hi, Please add SetResDebug( .T. ) al the start of your app and CheckRes() before exiting. Also, I have noticed that soemtimes FWH loses bitpams in RIBBON BAR. Hope it helps
Application Slowdown
I see that it creates a res.log - what does the contents show me? This forum is so much better than the xHarbour commercial forum - i posted my first message on there in June 2010 and have yet to receive any suggestions - on here i have help in just over half an hour
Application Slowdown
The controls that have not been propely ended. I think the best compiler is Harbour and of course, this forum is the best support for Harbour Guis.
Application Slowdown
Hello Peter, You can use this free Tool, to check and optimize the memory to find out Problems of running Applications without any changes of Your own Application. It runs in the Background and can optimize the Memory in Intervall and shows the used Memory. Maybe another running Application is the Reason for the memory-problems. Before You start, to check inside Your Application, You can do a Test with this Tool, because on several other Customer-Computers it is working fine ? All Tools : <!-- m --><a class="postlink" href="http://www.rizone3.com/">http://www.rizone3.com/</a><!-- m --> Memory-Booster : <!-- m --><a class="postlink" href="http://www.rizone3.com/archives/27">http://www.rizone3.com/archives/27</a><!-- m --> This method will not free up a big amount of RAM, but instead will, improve the stability and performance of your computer. This will also cure memory leaks and in some cases has been able to unfreeze programs. Because it uses a Windows API call, you know that it’s safe to run. You don’t need to install Memory Booster. Just unzip the files to your desired location and run ‘MemBoost.exe’. Memory Booster stores all settings in the application folder and will not write anything to the Registry. [img:1ycsc8se]http&#58;//www&#46;pflegeplus&#46;com/pictures/memory_1&#46;jpg[/img:1ycsc8se] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Application Slowdown
The trouble is that we have invested a lot of development into SQLRDD so we have to use xHarbour Thats a bit worrying - i open my app and close is straight away and I have a file with 66 lines in - all the app is doing at that stage is opening tables, opening a buttonbar and displaying a bitmap - i noticed that there is a line with brush and as far as i know i dont use any brushes in this app
Application Slowdown
Pete, Maybe you should update your FWH. Your version is already 5 years old. I have some customers by whom my application is used by more than 30 users on their network. If I remember well, I once had a similar problem but that dissappeared after an update of FWH. Often that kind of problems are caused by the antivirus software used by your customer. You should try to disable the antivirus software and check if some different behaviour is experienced. Good luck.
Application Slowdown
Sorry got the numbers around the wrong way for the FW version should be 10.06 <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> I can ask about the AV, but they are a big company and probably wont allow to turn off the AV
Application Slowdown
Peter I went through a similar situation and i monitored the resources At the beginning of my application i have (it is still there) SetKey( VK_F11, { || FERASE("CHECKRES.TXT"),CHECKRES() } ) When i go into a similar situation , i make the user press f11 and send me the file Checking the file, one of my printing programs was not releasing a font and that was the problem when this function was used often and often during the day HTH Richard
Application Slowdown
I Have searched all of my source code and i do not use a brush yet the res.log file says that there are three - is there a way of releasing these or do i have to find where in the code these are being defined?
Application Slowdown
Peter, [quote:3pou3b2j]I Have searched all of my source code and i do not use a brush yet the res.log file says that there are three - is there a way of releasing these or do i have to find where in the code these are being defined?[/quote:3pou3b2j] This is most likely a bug in the FWH code. One way to isolate where it is happening is to comment out about half of the code you are running, then test again. This will tell you which half of your code is causing the problem. Then comment out half of the problem code to isolate it to 1/4 of your code. Eventually you will find the line(s) causing the problem and then you can try to find what FW source contains the bug. RE: Antivirus software From your description of increasing slowness I don't think this is your problem but be advised that AV software should be set to ignore databases and indexes. Otherwise every time a record is saved the entire database will be scanned. Regards, James
Application Slowdown
Hi, I have set up SetResDebug( .T. ) and Checkres() to, for example, ribbon2.prg sample and there are many objects not released. Why does occur?. I beleived FWH handles that!! Thank you-
Application Slowdown
UKService, I looked at the fw\samples\ribbon2.prg example and there is some poor coding in it. It does not release a number of fonts, brushes, and bitmaps that it creates. This has nothing to do with the ribbonbar class and its associated classes. If you have defined your ribbonbar similarly to ribbon2.prg then perhaps you have the same problem. Mainly there are several NOWAIT dialogs that are defined in functions using LOCAL fonts, brushes, and bitmaps. These resources need to be destroyed when the main app is ended but the locals cannot be accessed by the main app. The best solution would probably to write the app as a class and have three arrays as data of the app; one array for fonts, one for brushes and one for bitmaps. Then the End() method of the app class could destroy all these resources. HOWEVER, I don't think this is the reason for your app slowing down. These resource are only defined once per application run. I think you have resources that are defined every time a certain function or routine is called and those resources are never released. Here is a test. Add checkres() to the end of your app. Open the app, then immediately close it. Ideally, there should be no unreleased resources in the file, but if there are, just ignore them for now. Keep a copy of the checkres() file. Now, run the app again and perform several routines, then close it again. Now compare the previous and current checkres.txt files. I expect you are going to see some new resources that were not in the first file. These are part of the problem. You can isolate certain routines by erasing the checkres.txt file at the beginning of the routine, and calling checkres() at the end of the routine. Regards, James
Application Slowdown
OK, I have done some tests by placing SetResDebug( .T. ) before a routine and CheckRes() after, here are my findings: A routine that just calls Msginfo() creates a res.log that contains this: [code=fw:1028nhwc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />          <span style="color: #000000;">0</span><br /><span style="color: #0000ff;">BRUSH</span><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br /><br /> </div>[/code:1028nhwc] I then placed the code before and after i open a dialog that contains a listbox and three BTNBMP with a bitmap from resource, this returns this: [code=fw:1028nhwc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />          <span style="color: #000000;">0</span><br /><span style="color: #0000ff;">BRUSH</span><br />          <span style="color: #000000;">0</span><br />BMP<br />          <span style="color: #000000;">0</span><br />PAL<br />          <span style="color: #000000;">0</span><br />BMP<br />          <span style="color: #000000;">0</span><br />PAL<br />          <span style="color: #000000;">0</span><br />BMP<br />          <span style="color: #000000;">0</span><br /><span style="color: #0000ff;">BRUSH</span><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br /> </div>[/code:1028nhwc] If i comment out the BTNBMP, i get this: [code=fw:1028nhwc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />          <span style="color: #000000;">0</span><br /><span style="color: #0000ff;">BRUSH</span><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br />          <span style="color: #000000;">0</span><br /><br /><br /> </div>[/code:1028nhwc] So i would say that BTNBMP (and maybe Msginfo) is leaving something behind - should i be destroying the BTNBMP somehow (if so, how?) after i close the dialog? Any advice would be appreciated Pete
Application Slowdown
Pete, [quote:29de3vx6]I then placed the code before and after i open a dialog[/quote:29de3vx6] If you are calling checkres() before the dialog is closed then it is meaningless. You have to call it AFTER the dialog is closed. Did you try my other tests? Regards, James
Application Slowdown
Yes i did put checkres after the dialog is closed - sorry wasnt clear
Application Slowdown
When I look at the TBtnbmp class it does appear that all the bitmaps are being released. I suggest building the smallest test program you can with just a dialog and a btnbmp and seeing if all the bitmaps are being released. If they are not, please post your test program here. James
Application Slowdown
Peter There were some cases in previous fwh releases where fonts and brushes were not correctly released, concerning xbrowse, gets..etc This was fixed in fwh 10.9 and upwards If you can upgrade from 10.6 , i think it can help solving your problem On another hand concerning the checkres file, i do not use setresdebug just the checkres and the reading of the file is very clear, program and line n°, it helped me fixing memory consuption issues in my application. HTH Richard
Application Slowdown
Richard, can you show me an example of your code where you use checkres as when i tried nothing happened. I'm not sure i can upgrade from 10.06 yet as future versions caused me some display problems - see <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19786&start=0">viewtopic.php?f=3&t=19786&start=0</a><!-- l -->
Application Slowdown
Peter At the very beginning of my application this is what i have SetKey( VK_F11, { || FERASE("CHECKRES.TXT"),CHECKRES() } ) when i want to check the resources , i press F11 and get the file Hth Richard
Application Slowdown
Uwe, My customers have installed the software and have noted that it has improved performance - is there any way of doing what this app is doing programtically? As I cant upgrade FW, i cant see if the latest memory leaks are actually the cause and if it will help the problems im getting Best regards, Pete
Application Slowdown
Pete, >My customers have installed the software and have noted that it has improved performance - is there any way of doing what this app is doing programatically? I assume you are referring to the memory monitoring software that Uwe suggested? If so, then there is nothing similar built into FW. >As I cant upgrade FW, i cant see if the latest memory leaks are actually the cause and if it will help the problems im getting. You can be sure that memory leaks will slow down a computer, and many apps (not just FW apps) have memory leaks so over time, a computer will get slower. Regular reboots will help. More RAM will also help by delaying the effects. You can set computers to reboot automatically during the night (timed so they are not doing backups, etc.). You may have also introduced memory leaks yourself in your code (we all do it). When you define fonts, bitmaps, etc. you have to remember to End() them too. You can look through your code for such problems. Regards, James
Application Slowdown
Hi James, I recently went through my code and made sure I was ending all my defined fonts. I don't use many bitmaps in my app except on BtnBmps - do you think i should end these when i close any dialogs? (please say no!!) I have just written a small routine that i call when the dialog is closed (in the valid clause): [code=fw:2mr5zu0u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> CompleteEnd<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span>   <br />    <span style="color: #00C800;">LOCAL</span> nCount  := <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">LOCAL</span> lFolder := .F. <br />    <span style="color: #00C800;">LOCAL</span> oFolder <br /><br />    <span style="color: #B900B9;">//First check to see if there is a folder within the dialog </span><br />    <span style="color: #00C800;">FOR</span> nCount := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#41;</span> <br />        <span style="color: #00C800;">IF</span> Alltrim<span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>nCount<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TFOLDER"</span><br />            lFolder := .T. <br />            oFolder := oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>nCount<span style="color: #000000;">&#93;</span><br />        <span style="color: #00C800;">ENDIF</span>   <br />    <span style="color: #00C800;">NEXT</span> <br />    <span style="color: #00C800;">IF</span> lFolder <br />        <span style="color: #B900B9;">//Folder Exists, End objects within folders</span><br />        <span style="color: #00C800;">FOR</span> nCount := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oFolder:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#41;</span>            <br />            Aeval<span style="color: #000000;">&#40;</span>oFolder:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span>nCount<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aControls</span>,<span style="color: #000000;">&#123;</span>|o| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>o <> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FOLDER "</span> + o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">NEXT</span> <br />    <span style="color: #00C800;">ENDIF</span>  <br />    <span style="color: #B900B9;">//End objects within dialog</span><br />    Aeval<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">aControls</span>,<span style="color: #000000;">&#123;</span>|o| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>o <> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span>o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> </div>[/code:2mr5zu0u] I noticed that when my routine showed which object was being ended, it was only removing every other object. For example, if the dialog had 6 tSay objects, the first, third and fifth tSay object would end!! - Would the above code help to remove any objects remaining open in a dialog or am i barking up the wrong tree? Could this be demonstrating that when a dialog is closed, not all the objects are being destroyed properly? Pete
Application Slowdown
Pete, Barking up the wrong tree. Controls are ended automatically when the parent is ended. The controls themselves are supposed to end any resources they are using. If a control is not ending all the resources it is using, you ending it before closing the parent is not going to help--it is a bug in the control. The issue is not that the parent is not ending the control, but rather the control is not ending the resource or resources. Remembering to end resources that you have initiated in your code will help since there is no way for FW to automatically do this. Regards, James
Application as a service
I have a program that I run on a server that provides automatic updates and completes other tasks. Until now it has been installing in the Startup menu and has worked out fairly well. However on some servers it won't activate on a reboot unless there is an operator to authorize it. The IT guys tell me it needs to be a "service". I'm using an installer that will let me create a service from an .exe, though it is not currently correctly activating the program. So here is my question, for discussion. Is anyone else creating a FWH / xHarbour or Harbour, executable to run as a service ? If so, what guidelines are you following ? Thanks for the info and ideas any can share on this topic. Tim
Application as a service
Look <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=30062&p=171474&hilit=run+as+a+service#p171446">viewtopic.php?f=17&t=30062&p=171474&hilit=run+as+a+service#p171446</a><!-- l -->
Application as a service
I already read that thread. It describes how to install it, but I'm using Actual Installer and may be able to do the installation right in my setup program. My question was about the actual service .exe built with FWH. Has anyone done this and discovered issues we need to consider in the process of building the .exe. Tim
Application as a service
I will try this again: 1) My installation software can actually register an application as a service. It installs it correctly. 2) The application written with FWH and xHarbour, which used to be run with Startup in Windows, will not start as a service even when installed and showing on the services list. My question: Should a service NOT be a Windows program ? Should it be built as a console app ? If I do build it as a Windows program, what do I need to avoid ? Can we have it display on the Task Bar as it did when run in the Startup folder ? Can we interact with it ( ie. popup menu ). Thanks.
Application as a service
Tim, Maybe it should not use the GUI. Please try this example and check if it beeps [code=fw:3fhxl099]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgBeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3fhxl099]
Application as a service
Check out this thread [url:3sjoeyvk]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=30374&hilit=service[/url:3sjoeyvk]
Application as a service
It would appear Robb has experience with this. I asked in the other thread if he can provide the sample he mentioned. I seem to have a problem getting harbour contribs ... Tim
Application converted in FWH
I want to thanks Antonio and all the Fivewin group for giving me the support and the big chance to convert an old application in a new environment. This is a screenshot of the main screen. [img:1chycc7g]http&#58;//www&#46;linossi&#46;it/public/harbour&#46;jpg[/img:1chycc7g] Thanks to all. Massimo.
Application converted in FWH
Massimo, Very good, congratulations! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Application converted in FWH
Thanks to the FWH master <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> If one day I'll be able to convert this to native Apple application, my customers will kiss you...
Application converted in FWH
Massimo, We expect that along 2010 there will be more FiveMac users so it will grow with more features, compatibility level with FWH, etc <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Application converted in FWH
If you need a beta tester, I'm here <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Application converted in FWH
Massimo, Thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We will comment it here in the forums when we start adding new features to FiveMac.
Application crash
this is the [b:34z5z9ur] hb_out[/b:34z5z9ur] [code=fw:34z5z9ur]<div class="fw" id="{CB}" style="font-family: monospace;">Application Internal Error - C:\Work\Prg\Agenda_new\Agenda -\main.Exe<br />Terminated <span style="color: #00C800;">at</span>: <span style="color: #000000;">2019</span><span style="color: #000000;">-12</span><span style="color: #000000;">-11</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">04</span>:<span style="color: #000000;">22</span><br />Errore irrecuperabile <span style="color: #000000;">6005</span>: <span style="color: #000000;">Exception</span> error:<br /><br />    Exception Code:<span style="color: #000000;">C0000005</span> ACCESS_VIOLATION<br />    Exception Address:77967AD6<br />    EAX:<span style="color: #000000;">00004682</span>  EBX:0337DF88  ECX:0000000F  EDX:<span style="color: #000000;">FFFFF7FF</span><br />    ESI:0337DF88  EDI:02B60000  EBP:0019DCD8<br />    CS:<span style="color: #000000;">EIP</span>:<span style="color: #000000;">0023</span>:77967AD6  SS:<span style="color: #000000;">ESP</span>:002B:0019DB80<br />    DS:002B  ES:002B  FS:<span style="color: #000000;">0053</span>  GS:002B<br />    Flags:<span style="color: #000000;">00210206</span><br />    Exception Parameters: <span style="color: #000000;">00000001</span> 0337E004<br />    CS:<span style="color: #000000;">EIP</span>: <span style="color: #000000;">66</span> <span style="color: #000000;">89</span> <span style="color: #000000;">44</span> CB <span style="color: #000000;">04</span> EB <span style="color: #000000;">11</span> 6A <span style="color: #000000;">00</span> <span style="color: #000000;">51</span> <span style="color: #000000;">52</span> <span style="color: #000000;">50</span> 8B D7 B9 0C<br />    SS:<span style="color: #000000;">ESP</span>: <span style="color: #000000;">AA8D9BE6</span> 0337DFA0 02B60000 0337DFA8 FFFFFFE3 <span style="color: #000000;">00000080</span> <span style="color: #000000;">02000002</span> 03367D40 FFFFFFEA 000007FF <span style="color: #000000;">21000021</span> 0337C518 <span style="color: #000000;">00000080</span> <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000031</span> 02B66840<br /><br />    C stack:<br />    EIP:     EBP:       Frame: <span style="color: #000000;">OldEBP</span>, RetAddr, Params...<br />    77967AD6 0019DCD8   0019DD28 <span style="color: #000000;">77967057</span> 0337DFA0 0337DFA8 <span style="color: #000000;">00000000</span> AAF01372 0337DFA8 710EAC0F <span style="color: #000000;">00000000</span> 00F35E34<br />    <span style="color: #000000;">77967057</span> 0019DD28   0019DD50 710E41A6 02B60000 <span style="color: #000000;">00000000</span> 0337DFA8 <span style="color: #000000;">00000000</span> AAF0177F 0000043F FFFFF3C0 AAF01372<br />    710E41A6 0019DD50   0019DD60 0044ACA9 0337DFA8 006111F4<br />    0044ACA9 0019DD60   0019DD9C 004481EF 0337DFA8 <span style="color: #000000;">00000003</span> 0019E76C 00421DAF 007D5EBC 0019DD70 <span style="color: #000000;">00000024</span> <span style="color: #000000;">00000000</span><br />    004481EF 0019DD9C   0019DDC4 004E4000 006139DF <span style="color: #000000;">00000000</span> <span style="color: #000000;">00845854</span> 000000C1 <span style="color: #000000;">00000003</span> 00F31E8C <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span><br />    004E4000 0019DDC4   0019DEE4 004DDD2F <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0061832C <span style="color: #000000;">00000001</span> 00845CA0 0019DDF8 00F36F04<br />    004DDD2F 0019DEE4   0019DEF4 0042977C 0061392A 006103C4<br />    0042977C 0019DEF4   0019DF1C 004E4000 0061C06F <span style="color: #000000;">00000000</span> <span style="color: #000000;">00845854</span> 000000B7 <span style="color: #000000;">00000003</span> 00F31E8C <span style="color: #000000;">00000000</span> 000004A0<br />    004E4000 0019DF1C   0019E03C 004DDD2F <span style="color: #000000;">00000001</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0061870C 00A4302C <span style="color: #000000;">00000287</span> 0019DF9C 00F36F04<br />    004DDD2F 0019E03C   0019E04C 00429BA4 0061BF7C 0061757C<br />    00429BA4 0019E04C   0019E074 004E4262 0061BD80 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00845854</span> 000000B5 <span style="color: #000000;">00000003</span> 00F31E8C 02B70006 0000044F<br />    004E4262 0019E074   0019E194 004DDE70 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 005D6E4C 001E702C <span style="color: #000000;">00000230</span> 00C0535C <span style="color: #000000;">00000001</span><br />    004DDE70 0019E194   0019E1A4 00429B2C 0061BD79 0061757C<br />    00429B2C 0019E1A4   0019E1CC 004E40EA <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000002</span> <span style="color: #000000;">00000000</span> 000000B0 <span style="color: #000000;">00000003</span> 00F31E8C <span style="color: #000000;">01470006</span> 000003EA<br />    004E40EA 0019E1CC   0019E1D8 004E45B1 031F0000<br />    004E45B1 0019E1D8   0019E200 <span style="color: #000000;">00442601</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 0062D990 <span style="color: #000000;">00045854</span> 0019E228 004E4223 00C0529C<br />    <span style="color: #000000;">00442601</span> 0019E200   0019E228 004E4262 00631CF1 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00845854</span> 000000AA <span style="color: #000000;">00000003</span> 00F31E8C <span style="color: #000000;">01220004</span> <span style="color: #000000;">00000000</span><br />    004E4262 0019E228   0019E348 004DDE70 <span style="color: #000000;">00000003</span> <span style="color: #000000;">00000000</span> <span style="color: #000000;">00000000</span> 00618E9C 00631C7B <span style="color: #000000;">00000000</span> 013F6FD0 00F36F04<br />    004DDE70 0019E348   0019E358 0042B028 00631AA8 0062C590<br />    0042B028 0019E358   0019E380 004E4262 0061E3E3 <span style="color: #000000;">00000000</span> <span style="color: #000000;">00845854</span> 000000A5 <span style="color: #000000;">00000003</span> 00F31E8C <span style="color: #000000;">01220005</span> <span style="color: #000000;">00000709</span></div>[/code:34z5z9ur] it seem for [b:34z5z9ur]Bitmap/btnbmp/gdi[/b:34z5z9ur] problem as you can see here [code=fw:34z5z9ur]<div class="fw" id="{CB}" style="font-family: monospace;">Called <span style="color: #0000ff;">from</span> GDIP_DELETEIMAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> PALBMPFREE<span style="color: #000000;">&#40;</span><span style="color: #000000;">1184</span><span style="color: #000000;">&#41;</span> in .\source\classes\BITMAP.PRG<br />Called <span style="color: #0000ff;">from</span> TBTNBMP:<span style="color: #000000;">FREEBITMAPS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1103</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TBTNBMP:<span style="color: #000000;">DESTROY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1002</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1801</span><span style="color: #000000;">&#41;</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2030</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3559</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">304</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG<br />Called <span style="color: #0000ff;">from</span> BUILDDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">1446</span><span style="color: #000000;">&#41;</span> in Source\PAgenda2.prg<br />Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BUILDPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">655</span><span style="color: #000000;">&#41;</span> in Source\PAgenda2.prg<br />Called <span style="color: #0000ff;">from</span> TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1595</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG<br />Called <span style="color: #0000ff;">from</span> BUILDPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">744</span><span style="color: #000000;">&#41;</span> in Source\PAgenda2.prg<br />Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BUILDCALEX<span style="color: #000000;">&#40;</span><span style="color: #000000;">411</span><span style="color: #000000;">&#41;</span> in Source\PAgenda2.prg<br />Called <span style="color: #0000ff;">from</span> TCALEX:<span style="color: #000000;">RBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1452</span><span style="color: #000000;">&#41;</span> in .\source\classes\TCALEX.PRG<br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TCALEX:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1801</span><span style="color: #000000;">&#41;</span> in .\source\classes\CONTROL.PRG<br />Called <span style="color: #0000ff;">from</span> _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3559</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />Called <span style="color: #0000ff;">from</span> TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1097</span><span style="color: #000000;">&#41;</span> in .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG<br />Called <span style="color: #0000ff;">from</span> TAPPLICATION:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">328</span><span style="color: #000000;">&#41;</span> in Source\main.prg</div>[/code:34z5z9ur] I only compiled CallInfo.prg (tlalex) changing a font on PaintOnMonth( hDC ) to show the text good PAgenda.prg is sample01.prg of Tcalex class
Application not safe - Win XP message
Hi, After install the IE 7 a security alert message is displayed by XP before starting our application How can I avoid this message ? How can the application be made secured to XP? Regards Antonio
Application not safe - Win XP message
Antonio If you are running your app from a server you will need to go to the desktops effected and add the server IP to the 'trusted' sites tab in Internet options... Vista is the same way. Rick Lipkin
Application not safe - Win XP message
Ricki, The IP-address of my server is 10.0.0.1. I added this IP-address to my trusted sites in my internet options. 1. What do I add : 10.0.0.1 or <!-- m --><a class="postlink" href="http://10.0.0.1">http://10.0.0.1</a><!-- m --> ? 2. I tried both ways, but no change. The question about security stays appearing. What do I do wrong ? Thanks.
Application not safe - Win XP message
Only from curiosity what is the name of your exe? In VISTA I have these problems with names including update, setup, install Regards, Otto
Application not safe - Win XP message
Its not a file name problem. I have several application names and all have the same problem. I'm going to test it but its probably and IP trust site probelm as this situation only begun to occurr when IE was updated to version 7. Antonio
Application not safe - Win XP message
AHF, I found this link : <!-- m --><a class="postlink" href="http://www.mcse.ms/message1030070.html">http://www.mcse.ms/message1030070.html</a><!-- m --> And here is said : [quote:bdkh2mkd]Open Internet Explorer Click on Tools Click on Internet Options Click on Security Click on Local intranet Click on Sites Make sure Automatically detect intranet network is checked Click on Advanced Add the name of your server to this zone Click Close [/quote:bdkh2mkd] I tried it out and it works. Good luck.
Application not safe - Win XP message
Thanks to all. Problem solved with last post. Antonio
Application not safe - Win XP message
All, Isn't there some way to do this via the registry? Thanks, Randal
Application not safe - Win XP message
Randal, under this key [code:37nhx7w7]HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\[/code:37nhx7w7] create a new key with the domain name (without http://) Under this key create a key "http" with the zone number as its value.
Application runs fine manually hangs in scheduled tasks
Hello, I have a strange problem. I have an application that works fine if I run from Windows Server 2008 R2 command line or via desktop. However, if I try to run via Scheduled Tasks, the application hangs. Has anyone run in to this problem and were you able to resolve problem. Thank you,
Application runs fine manually hangs in scheduled tasks
Hello Darrell, Change user account to SYSTEM Select Run whether user is logged or not., etc and uncommand that Task Ends after 3 days. Best regards, Otto
Application security and Code review
To All I have done business with a Health Agency for about 15 years who uses my Vehicle Fleet Management application. About 3 years ago I was informed my old ( original ) dbf\cdx application was a security risk. Ok, I can understand that .. the application was on a network share and anyone with Excel could open any .dbf. I took out a small contract to migrate the dbf\cdx to their on campus secure Sql Server using ADO .. and that seemed to satisfy the Network admin and the IT folks for a few years up until last week. Since this is a large Agency they use Microsoft networking with Active Directory, As a VERY nice enhancement to the application, I incorporated some LDAP code to open a connection to Active Directory .. query AD for ( only ) First name, Last Name, and Userid to populate xBrowse as a look up table to add employees to a Drivers table. I informed the Sql DBA that I needed two new fields added and I would be using those new fields to incorporate the new LDAP enhancement and this was his responce: [img:h1r9eihn]http&#58;//i67&#46;tinypic&#46;com/308dxyb&#46;jpg[/img:h1r9eihn] [img:h1r9eihn]http&#58;//i68&#46;tinypic&#46;com/2rc1tv4&#46;jpg[/img:h1r9eihn] My response to the Network Admin was "bring it on" ... unfortunately, the Fleet Manager did not want to stir up the pot and his manager probably would not pay for the testing and the fleet manager asked me to not push the issue. I informed the Network admin that I would take the ldap code out .. which I have done. The Network admin is still on the hook to add a new field unrelated to this issue . and has been un-responsive to this date. I did call the network admin and he also mentioned that they may add a 'penetration' test to the review of my software as well. My software sits inside an MPLS Firewalled network .. has no access to the outside world .. I am connecting to sql Server via ADO using the Sql Server DNS name and the secure Sql userid and password. I also use Aspack to compress my executable and when the .exe is viewed under a hex editor .. there is absolutely nothing readable ANYWHERE in the hex .. usually if you look at an un-compressed .exe with a hex editor .. you can see code extracts embeded in various parts of the Hex... however Aspack totally removes any readable text: [img:h1r9eihn]http&#58;//i66&#46;tinypic&#46;com/2q34waq&#46;jpg[/img:h1r9eihn] Here is a snipit of the LDAP code which I shared with the network admin : [code=fw:h1r9eihn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Domain  := <span style="color: #ff0000;">"LDAP://"</span>+alltrim<span style="color: #000000;">&#40;</span>cDomain<span style="color: #000000;">&#41;</span><br />cConnect := <span style="color: #ff0000;">"Active Directory Provider"</span><br /><br />oCn := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Connection"</span> <span style="color: #000000;">&#41;</span><br />oCn:<span style="color: #000000;">Provider</span> := <span style="color: #ff0000;">'ADsDSOObject'</span><br /><br /><span style="color: #00C800;">TRY</span><br />   oCn:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cConnect <span style="color: #000000;">&#41;</span><br />CATCH oErr<br />   Saying := <span style="color: #ff0000;">"Could not open a Global Connection to Domain "</span>+cDomain<br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> Saying <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />END <span style="color: #00C800;">TRY</span><br /><br />*<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connection Established"</span> <span style="color: #000000;">&#41;</span><br /><br />oRs := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ADODB.Command"</span><span style="color: #000000;">&#41;</span><br />oRs:<span style="color: #000000;">ActiveConnection</span> := oCn<br /><br /><span style="color: #B900B9;">// add middlename</span><br /><br />cSQL := <span style="color: #ff0000;">"SELECT "</span><br />cSql += <span style="color: #ff0000;">" telephoneNumber,"</span><br />cSql += <span style="color: #ff0000;">" displayName,"</span>          <span style="color: #B900B9;">// fullname</span><br />cSql += <span style="color: #ff0000;">" sAMAccountname,"</span>       <span style="color: #B900B9;">// userid</span><br />cSql += <span style="color: #ff0000;">" sn,"</span>                   <span style="color: #B900B9;">// last name  sn</span><br />cSql += <span style="color: #ff0000;">" givenname"</span>             <span style="color: #B900B9;">// first name</span><br />cSql += <span style="color: #ff0000;">""</span><br />cSql += <span style="color: #ff0000;">" FROM '"</span>+cDomain+<span style="color: #ff0000;">"'"</span><br />cSql += <span style="color: #ff0000;">" WHERE objectCategory   = 'person' AND"</span><br />cSql += <span style="color: #ff0000;">"       objectClass      = 'user'   "</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">Case</span><br /><span style="color: #00C800;">Case</span> cAdFind = <span style="color: #ff0000;">"Bogus"</span><br />     <span style="color: #B900B9;">// do nothing .. full table scan</span><br /><span style="color: #00C800;">OtherWise</span><br />   cSql += <span style="color: #ff0000;">" and displayname = '*"</span>+alltrim<span style="color: #000000;">&#40;</span>cAdFind<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"*' "</span><br />End <span style="color: #00C800;">DO</span><br /><br />cSql += <span style="color: #ff0000;">" ORDER BY displayName"</span><br /><br />oRs:<span style="color: #000000;">CommandText</span> := cSql <span style="color: #B900B9;">//cString + cWhere</span><br /><br />oProp           := oRs:<span style="color: #000000;">Properties</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'SearchScope'</span> <span style="color: #000000;">&#41;</span><br />oProp:<span style="color: #000000;">value</span>     := ADS_SCOPE_SUBTREE<br /><br />oProp           := oRs:<span style="color: #000000;">Properties</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Page size'</span> <span style="color: #000000;">&#41;</span><br />oProp:<span style="color: #000000;">value</span>     := <span style="color: #000000;">2000</span><br /><br /><span style="color: #00C800;">Try</span><br />  oRsAd := oRs:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Catch oErr<br />   <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LDAP Query Execution Error"</span><span style="color: #000000;">&#41;</span><br />   oCN:<span style="color: #000000;">CLose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br />End <span style="color: #00C800;">Try</span><br /><br />aData := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />aHead := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">// generate xBrowse headings</span><br />nFields := oRsAd:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">For</span> nI := <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> nFields - <span style="color: #000000;">1</span><br />    Aadd<span style="color: #000000;">&#40;</span> aHead, oRsAd:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span>nI<span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">name</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Next</span><br /><br /><br />nLen := oRsAd:<span style="color: #000000;">RecordCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> nLen > <span style="color: #000000;">0</span><br />   oRsAd:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Do</span> <span style="color: #00C800;">WHILE</span> .not. oRsAd:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      aReg := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />      <span style="color: #00C800;">For</span> nI := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>aHead<span style="color: #000000;">&#41;</span><br />         Aadd<span style="color: #000000;">&#40;</span> aReg, oRsAd:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> aHead<span style="color: #000000;">&#91;</span>nI<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">value</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">NEXT</span><br /><br />      <span style="color: #00C800;">If</span> empty<span style="color: #000000;">&#40;</span> aReg<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> .or. aReg<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">" "</span><br />      <span style="color: #00C800;">Else</span><br />         Aadd<span style="color: #000000;">&#40;</span> aData, aReg <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENdif</span><br /><br />      oRsAd:<span style="color: #000000;">MoveNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">Enddo</span><br /><br /><span style="color: #00C800;">Else</span><br />   <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No LDAP Data found"</span> <span style="color: #000000;">&#41;</span><br />   oRsAd:<span style="color: #000000;">CLose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oCN:<span style="color: #000000;">CLose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />LightGreyGrad<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> cMode = <span style="color: #ff0000;">"R"</span><br /><span style="color: #00C800;">Else</span><br />   oButt1:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oButt2:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />lOk3   := .f.<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"USERSLCT"</span>  ;<br />       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"User LDAP Look Up Table"</span>  ;<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBX            ;<br />            ARRAY aData             ;<br />            HEADERS <span style="color: #ff0000;">"FirstName"</span>,    ;<br />                    <span style="color: #ff0000;">"LastName"</span>,     ;<br />                    <span style="color: #ff0000;">"UserId"</span>,       ;<br />                    <span style="color: #ff0000;">"FullName"</span>,     ;<br />                    <span style="color: #ff0000;">"Phone"</span>         ;<br />       COLSIZES <span style="color: #000000;">97</span>,<span style="color: #000000;">97</span>,<span style="color: #000000;">97</span>,<span style="color: #000000;">150</span>        ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oDlg               ;<br />       AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL<br /><br />   oLbx:<span style="color: #000000;">lHScroll</span> := .f. <span style="color: #B900B9;">// turn off horiz scroll bar</span><br />   oLbx:<span style="color: #000000;">lRecordSelector</span> := .f.<br />   oLbx:<span style="color: #000000;">nMarqueeStyle</span>   := MARQSTYLE_HIGHLROW<br /><br />   oLbx:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> |nRow,nCol | <span style="color: #000000;">&#40;</span>lOk3 := .t.,oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   _BrowColor<span style="color: #000000;">&#40;</span>oLbx<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">of</span> oDlg   ;<br />         <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"OK"</span>, <span style="color: #ff0000;">"DOK"</span>, <span style="color: #ff0000;">"DOK"</span> ;<br />         <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br />         <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lok3 := .t., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtn2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">OF</span> oDlg   ;<br />         <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CANCEL"</span>, <span style="color: #ff0000;">"DCANCEL"</span>, <span style="color: #ff0000;">"DCANCEL"</span> ;<br />         <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span>;<br />         <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lOk3 := .f.,oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">100</span>,<span style="color: #000000;">400</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">//, oLbx:SetFocus() );</span><br />         <span style="color: #0000ff;">VALID</span><span style="color: #000000;">&#40;</span>!GETKEYSTATE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">27</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:h1r9eihn] I have no idea how much more I can secure an application .. again, this is running within the clients MPLS network .. The application does not reach out to the internet .. so what is their to penetrate .. I am making a DNS connection to their secure Sql Server .. the ldap code opens a connection .. I query the elements I want .. send it to xBrowse .. and close the connection ?? I have no idea what a security review would find ? .. seems pretty locked down to me. Rick Lipkin
Application security and Code review
Rick, Consider the possibility that it is a cover-your-a** move. Maybe they just want to cover themselves in case anything goes wrong, so they can blame it on you. James
Application security and Code review
[quote="James Bott":3qn4b3ul]Rick, Consider the possibility that it is a cover-your-a** move. Maybe they just want to cover themselves in case anything goes wrong, so they can blame it on you. James[/quote:3qn4b3ul] ++1
Application security and Code review
James and Cristobol What I think is happening is a genuine concern about any 3rd party software that touches or attaches to their active directory may be seen as a threat. All I am doing is adding value at my application to add new functionality to the software to be able to tap into a resource that already exists. I have used this LDAP module in other applications to get First Name, Last Name and Userid to populate a list box to make it easy to populate Employee information into a form .. such as a Driver who want to check out vehicles .. or Names to tag IT Inventory. I just found it repulsive that due to adding value to my software ... that I would receive such 'threats' from IT staff. In my response to the IT person, I gave him the code and showed him exactly what I was doing .. and he understands, however the 'spouting' of IT policy to me seemed childish especially when I gave up my code to start a dialog that there is no intentional harm on my part to destroy or undermine his network Active Directory infrastructure. Now, politically my software will be seen in their organization as a threat and an excuse to find another software solution more 'politically correct' to the my clients Supervisor. My client just asked me to lay low and I promised both my client and the IT manager that the future added value of LDAP will not be included in my next update build ... and at this point .. I really don't give a damn. Rick Lipkin
Application security and Code review
[quote="Rick Lipkin":3p86s1cj]James and Cristobol Now, politically my software will be seen in their organization as a threat and an excuse to find another software solution more 'politically correct' to the my clients Supervisor. Rick Lipkin[/quote:3p86s1cj] I think this is the real reason And also that they have seen [b:3p86s1cj]that their software is not so safe[/b:3p86s1cj], if with a third-party tool (yours), you can access their information [b:3p86s1cj]The security problem is theirs[/b:3p86s1cj], not yours