Help with Debug

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
andyglezl
Posts: 1149
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 35 times
Been thanked: 68 times
Contact:

Re: Help with Debug

Post by andyglezl » Sat Mar 02, 2013 6:45 am

Hola Leopoldo

Para el ejemplo no es necesario tener estos include:
#include "dbstruct.ch"
#include "i_keybd_ext.ch"
#include "i_color.ch"
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
esgici
Posts: 4508
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 386 times
Been thanked: 111 times
Contact:

Post by esgici » Sat Mar 02, 2013 10:26 am

Hola Andres

I haven't much experience on debug; but your work is good, thanks to sharing.
Tried to note the status of memory variables from a. Mem
But I found some limitations.
I have some limited knowledge on .mem files; I want to help you.

Sadly due to language barriers I couldn't understand enough your code and your problem on .mem files :(

Saludos
Viva INTERNATIONAL HMG :D

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Mar 02, 2013 12:30 pm

andyglezl wrote:
Leopoldo Blancas wrote:me sale el siguiente error al compilar...

Code: Select all

Harbour 3.2.0dev (Rev. 18706)
Copyright (c) 1999-2012, http://harbour-project.org/

C:\hmg.3.1.1\MiosHMG\DemoDebug\DemoDebug.prg(4) Error F0029  [b]Can't open #include file 'i_keybd_ext.ch'[/b]
hbmk2: Error: Running Harbour compiler (embedded). 1
(C:\hmg.3.1.1\harbour\bin\harbour.exe) 
Alguna sugerencia?
Hola Leopoldo

Para el ejemplo no es necesario tener estos include:
#include "dbstruct.ch"
#include "i_keybd_ext.ch"
#include "i_color.ch"
Lo que quiere decir el amigo, es que puedes remover los includes dbstruct.ch, i_keybd_ext.ch y i_color.ch del código. Y en mi opinion tambien puedes remover HFCL.CH que de acuerdo el código presentado tambien no lo precisa.

Andrés, me gustó mucho tu iniciativa. Felicitaciones y si me permites, me gustaria contribuir con algunos cambios e implementaciones. Puede ser ?

--- In Enlgish ---

What our friend wants means is that you can remove those includes dbstruct.ch, i_keybd_ext.ch and i_color.ch form source code. IMHO also can be removed HFCL.CH which is not necessary in this code.

Andrés, I liked much for your initiative. Congratulations and I may contribute with some changes and implementations. Could It be?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Mar 02, 2013 2:56 pm

Hi, due your not replyied yet, I advanced with another version. If you permit me, of course.

Please note in attached file your project with some modifications. Please also note Screen below:
Screen63.PNG
Screen63.PNG (24.48 KiB) Viewed 2176 times
I hope you enjoy it !
Attachments
DemoDebug.rar
(757.56 KiB) Downloaded 116 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
esgici
Posts: 4508
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 386 times
Been thanked: 111 times
Contact:

Post by esgici » Sat Mar 02, 2013 3:44 pm

Hi Pablo

I don't understand, why you always add executable to your attachments ?

I don't know it's in everywhere or only my country; my internet connection has "quota" limitation; If I will download more MB than my quota, I should pay extra money :(

Do you want I will send you my bill :lol:

Saludos
Viva INTERNATIONAL HMG :D

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Mar 02, 2013 5:12 pm

esgici wrote:Hi Pablo

I don't understand, why you always add executable to your attachments ?
..//...
Do you want I will send you my bill :lol:
I will remember for next time. :roll:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Leopoldo Blancas
Posts: 388
Joined: Wed Nov 21, 2012 7:14 pm
Location: México
Has thanked: 3 times
Been thanked: 9 times

Post by Leopoldo Blancas » Sat Mar 02, 2013 7:09 pm

Jajaja Hola a todos...

Lo que dijo el amigo Esgici en verdad me dio risa.... :D

Code: Select all

Hi Pablo

I don't understand, why you always add executable to your attachments ?

I don't know it's in everywhere or only my country; my internet connection has "quota" limitation; If I will download more MB than my quota, I should pay extra money 

Do you want I will send you my bill 

Saludos
Si, lamentablemente en muchos países la cuota del internet es muy alta... por fortuna aquì en mèxico, podemos bajar cualquier cantidad de MB, solo el incomveniente es la velocidad de tu modem el tiempo que se va a tardar y la capacidad de descarga en MB que hayas contratado.... Pero bueno eso creo que es justo..... es mejor esperar un poquito que pagar dinero extra... que creo que es el caso del amigo Esgici.... te comprendo. +1

Saludos
Polo
*---------------GOOGLE TRASLATE--------------------------------------------------------------------------------------
Hello everyone ... lol

What you said really Esgici friend made ​​me laugh .... :D

Code: Select all

 Hi Pablo

I do not understand, why you always add to your executable attachments?

I do not know it's in everywhere or only my country, my internet connection has "quota" limitation, If I will download more MB than my quota, i should pay extra money

Do you want I will send you my bill

Regards [/ code]

If, unfortunately, in many countries the share of internet is very high ... Fortunately here in Mexico, we can download any amount of MB, only incomveniente is the speed of your modem how long it will take and the discharge capacity in MB you signed .... Well I think it's fair ..... it is better to wait a little extra money to pay ... I think that is the case Esgici friend .... I understand. +1

regards
Polo

User avatar
esgici
Posts: 4508
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 386 times
Been thanked: 111 times
Contact:

Post by esgici » Sat Mar 02, 2013 7:30 pm

Hola Pablo and Polo

Thanks to your understanding :)

Saludos
Viva INTERNATIONAL HMG :D

User avatar
andyglezl
Posts: 1149
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 35 times
Been thanked: 68 times
Contact:

Post by andyglezl » Sat Mar 02, 2013 10:16 pm

OK segundo "round", anexo modificaciones al programa.

Gracias Esgici y Pablo César.
Pablo, tome tu rutina para manejar el archivo .mem que es justamente lo que queria hacer.

Ahora, segun la descripcion del SAVE en Clipper
/*
SAVE copies public and private memory variables visible within the
current procedure or user-defined function to a memory (.mem) file.
Arrays and local and static variables, however, cannot be SAVEd. When
variables are SAVEd, they are copied without any reference to scope.
Variables hidden by PRIVATE or LOCAL declarations are not SAVEd.

Por lo tanto habria que ver la forma de solventar esto (me supongo que todos
definimos variables LOCALES).
*/

Tengo los siguientes puntos:

1.- Como guardar las Variables LOCAL, STATIC y DEFINE ????
2.- Como guardar todos los arreglos que hay en memoria ????
3.- Crear rutina para que en el ON DBLCLICK del GRID "F_Debug.G_Debug" desplegar
las demas propiedades del control.
3.- Crear rutina para saber que BDs estan en uso
4.- Que otros valores son importantes de mostrar ????

P.D. * Me pregunto si no habra algo asi como "_HMG_aControlNames" pero para las variables ????
P.D. de la P.D. * Cada vez que se abra otra ventana en su programa, hay que actualizar el ComboBox
seleccionando cualquier nombre y enseguida aparecera el nombre de la nueva ventana.
-------------------------------------------------------------------------------------------
OK second "round", annex program modifications.

Thanks Esgici and Pablo Cesar.
Pablo, take your routine to handle the file .mem that is exactly what I wanted to do.

Now, according to the description in Clipper SAVE
/ *
SAVE public and private memory copies visible variables Within the
current procedure or user-defined function to a memory (. mem) file.
Arrays and the local and static variables, However, Can Be Saved. When
variables are saved, copied without They are reference to any scope.
Variables or hidden by PRIVATE LOCAL declarations are not saved.

So we should see how to solve this (I guess all
define local variables).
* /

I have the following:

1. - Saving local variables, LOCAL DEFINE STATIC ????
2. - Saving all the arrays that exist in memory ????
3. - Create routine to the DBLCLICK ON GRID "F_Debug.G_Debug" deploy
other properties of the control.
3. - Create routine to know that BDs are in use
4. - What other values ​​are important to show????

P.S. * I wonder if there will be something like "_HMG_aControlNames" but for variables ????
P.S. of P.S. * Each time you open another window in your program, you must update the ComboBox
selecting any name and then appear the name of the new window.
------------------------------------------------------------------------------------
Attachments
DemoDebug.rar
(10.78 KiB) Downloaded 113 times
DemoDebug2.jpg
DemoDebug2.jpg (99.58 KiB) Viewed 2144 times
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
andyglezl
Posts: 1149
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 35 times
Been thanked: 68 times
Contact:

Post by andyglezl » Sat Mar 02, 2013 10:42 pm

Perdón
Gracias tambien rathinagiri y Polo...
----------------------------------
forgiveness
Thanks also to rathinagiri and Polo ...
Andrés González López
Desde Guadalajara, Jalisco. México.

Post Reply