HMG 3.0.36 (Test)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

danielmaximiliano wrote:Hola Roberto : tengo malas nuevas. descargue HMG3.0.37(test) desde el IDE abri mi aplicacion al intentar compilar me dio este error. no agregue nada en examinador de proyecto. solo busque la carpeta y abri VENCIMIENTOS.hbp, le di Click sobre el boton Ejecutar y me dio este error.
en HMG3.0.35 y HMG3.0.36(test) funciona bien.
para verificar la existencia de un error dentro de mi aplicacion sin cerrar el proyecto decidi abrir otro proyecto desde C:\hmg.3.0.37.test\hmg\SAMPLES\ACTIVEX.1
elegi demo1.hbp le di click al boton Ejecutar y me da error.
demo1.rc contiene los recursos del anterior proyecto.
Y fijate si el archivo hmg.ini en %hmgroot%/ide apunta a la carpeta de instalación de hmg correcta.

and check if the file hmg.ini at %hmgroot%/ide point to the correct hmg installation folder
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

Rathi,

An updated libmysqldll.a library (it works with rdd sql too).
Attachments
libmySQLdlla2.zip
(5.25 KiB) Downloaded 296 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

Hi All,

The new build.bat will ALWAYS link two GT drivers: GTGUI (default GUI) and GTWIN (Windows console).

If you want to activate console mode, you MUST add the following to your application:

Code: Select all

REQUEST HB_GT_WIN_DEFAULT
This is a sample:

Code: Select all

#include "hmg.ch"

REQUEST HB_GT_WIN_DEFAULT

*----------------------------------------------------------------------------------*
Function Main
*----------------------------------------------------------------------------------*

	DEFINE WINDOW form_1 AT 0 , 0 WIDTH 200 HEIGHT 200 TITLE "Mixed Mode Demo" MAIN
   
		DEFINE BUTTON Button_1
			ROW    10
			COL    10
			CAPTION "Test Console"
			ACTION   TestConsole()
		END BUTTON
   
	END WINDOW

	CENTER WINDOW form_1

	ACTIVATE WINDOW form_1

Return Nil

*----------------------------------------------------------------------------------*
Function TestConsole()
*----------------------------------------------------------------------------------*

SetMode(25,80)

CLS

@ 10,10 say 'Hello'

Return nil

Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG 3.0.36 (Test)

Post by danielmaximiliano »

Perfecto ...funciona de maravillas.
descomprimi hmg.3.0.37.test.zip y me creo la carpeta c:\hmg.3.0.37.test
dentro de ella c:\hmg.3.0.37.test\hmg donde estan todas las demas carpetas.
\doc
\harbour
\hfcl
...
....


copie todas esas carpetas al raiz de hmg.3.0.37.test modifique HMG.INI de la carpeta ..\ide
y ahora compila bien la aplicacion. se debe cerrar el proyecto para abrir otro sino toma los recursos del anterior proyecto abierto.
creo que el IDE debe cerrar el proyecto antes de abrir otro automaticamente. eso es posible???
un Aplauso muy buen trabajo Roberto
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

Rathi,

There is a serious problem in .36 and probably in .37 too (I've not downloaded yet).

You've distributed the file /ide/ide.ini

This file contains the hmg root location.

The file you've distributed contains c:\hmg.

If someone installs HMG in any other folder, IDE will look for build.bat in the folder pointed in hmg.ini file.

Please, for the next build, simply DELETE this file.

When IDE starts, if this file is not found, it will create a new one, assuming that hmg root is its parent folder (this is true for our releases).

This way, we keep it portable (it works in any location you unpack it) and you can have multiple installations working simultaneously without need to configure it (I'm doing so).

TIA.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

danielmaximiliano wrote: y ahora compila bien la aplicacion. se debe cerrar el proyecto para abrir otro sino toma los recursos del anterior proyecto abierto.
creo que el IDE debe cerrar el proyecto antes de abrir otro automaticamente. eso es posible???
Parece un bug. Voy a chequearlo.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

Rathi, Grigory, Ricci,

What about memory leaks?

How can I check it?

I'd like to help to fix them...

TIA.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.36 (Test)

Post by Rathinagiri »

Hi Roberto,

I have done all the things you have mentioned. :)

I will upload the latest version soon.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 3.0.36 (Test)

Post by Roberto Lopez »

danielmaximiliano wrote: y ahora compila bien la aplicacion. se debe cerrar el proyecto para abrir otro sino toma los recursos del anterior proyecto abierto.
creo que el IDE debe cerrar el proyecto antes de abrir otro automaticamente. eso es posible???
No he podido reproducir el problema. ¿Podrías describirme la secuencia exacta de los pasos para reproducirlo?

I've was not able to reproduce the problem. Could be you so kind to specify the exact sequence to reproduce it?
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
gfilatov
Posts: 1067
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: HMG 3.0.36 (Test)

Post by gfilatov »

Roberto Lopez wrote:Rathi, Grigory, Ricci,

What about memory leaks?

How can I check it?

I'd like to help to fix them...

TIA.
Roberto,

It is related to functions _SetPicture(), _EnableControl() and _DisableControl() in the source h_controlmisc.prg
and Button and Checkbox control with IsAppThemed() condition because we use here the Imagelist instead of the bitmap.
Solution was proposed by Ricci and consist in the adding a string
IMAGELIST_DESTROY ( _HMG_SYSDATA [ 37 ] [y] )
before the string _SetMixedBtnPictureDisabled( c , y ) or string _HMG_SYSDATA [ 37 ] := _SetMixedBtnPicture ( _HMG_SYSDATA [3] , FileName , _HMG_SYSDATA [26] )

OR replace the string
DeleteObject ( _HMG_SYSDATA [ 37 ] )
with
IMAGELIST_DESTROY ( _HMG_SYSDATA [ 37 ] [y] )
in aboved functions.

Hope that helps.
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
Post Reply