Mixed mode fails
Moderator: Rathinagiri
-
- Posts: 16
- Joined: Fri Jan 25, 2013 8:19 pm
Mixed mode fails
Hello everyone.
I have this problem. I ported an old system from clipper to HMG. The problem is as follow: when I compiled with 3.0.46 everything runs fine. I changed my report generator to present the results with hmg windows printng system. All Ok, no problem. After 2 or 3 year, I needed to update the system with more functionality. Upgraded HMG to 3.4.4 Stable and compiled without problems. But now, when the system generates a report via DOS box, the report window open and after seconds or minutes the system crashes with an "argument error ==". I checked the printing system code but I don't found the error. I have another system made completely with windows not mixed, recompiled it with 3.4.4 and does not present this error. Can someone help me? What things have changed from 3.0.46 to 3.4.4 to present this error? Thanks for your help.
I have this problem. I ported an old system from clipper to HMG. The problem is as follow: when I compiled with 3.0.46 everything runs fine. I changed my report generator to present the results with hmg windows printng system. All Ok, no problem. After 2 or 3 year, I needed to update the system with more functionality. Upgraded HMG to 3.4.4 Stable and compiled without problems. But now, when the system generates a report via DOS box, the report window open and after seconds or minutes the system crashes with an "argument error ==". I checked the printing system code but I don't found the error. I have another system made completely with windows not mixed, recompiled it with 3.4.4 and does not present this error. Can someone help me? What things have changed from 3.0.46 to 3.4.4 to present this error? Thanks for your help.
- serge_girard
- Posts: 3166
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Mixed mode fails
What error? It is unreadable!
Serge
Serge
There's nothing you can do that can't be done...
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Mixed mode fails
hi,
i can upsize and get this
under FF i can use right-menu and use "show Image"
i can upsize and get this
have fun
Jimmy
Jimmy
-
- Posts: 16
- Joined: Fri Jan 25, 2013 8:19 pm
Re: Mixed mode fails
Anyone can reply this?
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Mixed mode fails
hi,
real Solution : re-write you Code to Full GUI
Workaround : Minimize CRT and Maximie GUI Window to avoid "touch" other Window.
be sure that "no Output" is in CRT Window
real Solution : re-write you Code to Full GUI
Workaround : Minimize CRT and Maximie GUI Window to avoid "touch" other Window.
be sure that "no Output" is in CRT Window
have fun
Jimmy
Jimmy
- dragancesu
- Posts: 921
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Re: Mixed mode fails
Newer versions have better data control
You should look at the TERMINA_IMP function on line 525 and follow all the variables that appear,
let it be either empty or not the same type if it is a comparison
You should look at the TERMINA_IMP function on line 525 and follow all the variables that appear,
let it be either empty or not the same type if it is a comparison
Re: Mixed mode fails
Hola.
Si puedes comparte el contenido fuente de la aplicación,
creo que puedo ayudarte.
Si puedes comparte el contenido fuente de la aplicación,
creo que puedo ayudarte.
-
- Posts: 16
- Joined: Fri Jan 25, 2013 8:19 pm
Re: Mixed mode fails
Ya revisé varias veces mi código. No tengo errores de definción. Esto funcionaba con 3.0.46
Este es el proceso.
Una función( prepara_imp() ) seleccciona como será enviado el reporte:
En la función de inicia_imp inicializo el reporte:
Termina_imp() solo manda a llamar al visor de reportes:
Pueden ver que no es nada inusual o extraño. El error se origina en el visor de vista previa de los reportes de HMG.
Este es el proceso.
Una función( prepara_imp() ) seleccciona como será enviado el reporte:
Code: Select all
If lPreview
Select Printer Default ;
Orientation PRINTER_ORIENT_PORTRAIT ;
PaperSize PRINTER_PAPER_LETTER ;
Quality PRINTER_RES_MEDIUM ;
Preview
Else
Select Printer Default ;
Orientation PRINTER_ORIENT_PORTRAIT ;
PaperSize PRINTER_PAPER_LETTER ;
Quality PRINTER_RES_MEDIUM
Select Printer Dialog To lEligio
Endif
Code: Select all
FUNCTION inicia_imp()
If lSisPrnWindows //Impresion en sistema Windows
If cTipoDoc=="W" //Seleccionar impresora si es reporte en Windows
Start PrintPage
ElseIf cTipoDoc=="P" //Seleccionar impresion en PDF
Start HPDFPage
ElseIf cTipoDoc=="A" //Seleccionar reporte de texto
act_arch(cNomArch)
Endif
Code: Select all
PROCEDURE termina_imp
If lSisPrnWindows
ImprimeBuffer()
If fallo!=BIEN
Return
Endif
If cTipoDoc=="W" //Seleccionar impresora si es reporte en Windows
End PrintPage
End PrintDoc
ElseIf cTipoDoc=="P" //Seleccionar impresion en PDF
End HPDFPage
End HPDFDoc
If lTodoaPDF //opcion especial para crear todos los reportes por pantalla en PDF y visualizarlos
Execute File cNomArch
Endif
ElseIf cTipoDoc=="A" //Seleccionar reporte de texto
des_arch()
If !Empty(cNomArch).AND.!lSisPrnWindAnt
If At(".TXT",cNomArch)=0
edita_text(2,0,MaxRow(),MaxCol(),cNomArch,nAncho+2)
Erase(cNomArch)
Endif
Endif
Endif
Re: Mixed mode fails
Observa este ejemplo, espero que te ayude.
Se puede usar el teclado y el raton para manejar el menu.
No requiere compilar con gtwvg.
Yo hice varias aplicaciones mixed usando gtwvg y generaba errores inesperados
hasta que logre programar esta aplicación que te estoy enviando y me ha dado buenos resultados.
Se puede usar el teclado y el raton para manejar el menu.
No requiere compilar con gtwvg.
Yo hice varias aplicaciones mixed usando gtwvg y generaba errores inesperados
hasta que logre programar esta aplicación que te estoy enviando y me ha dado buenos resultados.
- Attachments
-
- Menu_En_Dos.zip
- (2.47 MiB) Downloaded 129 times
Re: Mixed mode fails
Ademas se puede ampliar la cantidad de columnas y aumentar la cantidad de filas ( en el formato console texto ).
También se le puede cambiar el icono y cambiar la descripción a la ventana.
También se le puede cambiar el icono y cambiar la descripción a la ventana.