Sample <console> abort

Moderator: Rathinagiri

Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Sample <console> abort

Post by Rossine »

Hi,

Entering the second time the option "Open QT GUI window" the program is aborted without any message.

Would it be possible to verify this ?

Best Regards,

Rossine.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Sample <console> abort

Post by danielmaximiliano »

Hola a Todos:

en mi caso da un error al intentar ejecutar la primera vez cualquier ejemplo de HMG4
al copiar mingwm10.dll en la carpeta asociada al ejemplo ocurre un segundo error.
dejo una imagen de ello

Hello to All:

in my case it gives an error when trying to run the first time any example of HMG4
mingwm10.dll copying the folder associated with a second error occurs eg.
I leave a picture of it
Greenshot_2011-11-27_21-38-24.png
Greenshot_2011-11-27_21-38-24.png (216.19 KiB) Viewed 4755 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Sample <console> abort

Post by danielmaximiliano »

perdon, la primera vez se ejecuta , la segunda vez dice que falta el archivo que se ve en la imagen.

eso si se encuenta mingwm10.dll en la carpeta, dejo un video de ello.



forgiveness, the first time it runs, the second says that the file you see in the picture.

It is found that if mingwm10.dll in the folder, leave a video of it.

*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Sample <console> abort

Post by mrduck »

Instead of copying the files, perhaps it is better that you seth a PATH to it...
danielmaximiliano wrote:perdon, la primera vez se ejecuta , la segunda vez dice que falta el archivo que se ve en la imagen.

eso si se encuenta mingwm10.dll en la carpeta, dejo un video de ello.



forgiveness, the first time it runs, the second says that the file you see in the picture.

It is found that if mingwm10.dll in the folder, leave a video of it.

Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Sample <console> abort

Post by Rossine »

Hello,

The second time I call the "Open QT GUI window" system is aborted. I got the window that appears through the printscreen before the program aborts. See below:

Best Regards,

Rossine.
Attachments
console.png
console.png (68.12 KiB) Viewed 4742 times
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: Sample <console> abort

Post by Ricci »

Rossine wrote: Would it be possible to verify this ?
Works perfect here. Do you have the latest version and use the actual SVN?
Attachments
2011-11-28 13h08_13.jpg
2011-11-28 13h08_13.jpg (71.22 KiB) Viewed 4740 times
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Sample <console> abort

Post by danielmaximiliano »

Ricci wrote:
Rossine wrote: Would it be possible to verify this ?
Works perfect here. Do you have the latest version and use the actual SVN?

en mi caso , si.
instalado los binarios HMG.4 del 23/11/2011
aplicado SVN update a la fecha de hoy.
contruido las librerias (buildlib.bat)
debo desintalar las anteriores versiones de HMG4?
todo esto en Windows 7 Home premium 64, sobre Hp4530s i3

in my case, yes.
HMG.4 installed binaries of 23/11/2011
SVN update applied to today's date.
constructed the libraries (buildlib.bat)
I uninstall previous versions of HMG4?
all this in Windows 7 Home Premium 64 on Hp4530s i3
HMGforum.png
HMGforum.png (75.75 KiB) Viewed 4738 times
HMGforum 2.png
HMGforum 2.png (162.14 KiB) Viewed 4738 times
si fuera necesario, cuales archivos se copiarian y a que carpeta copiar

if necessary, be copied and which files to copy to folder
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Sample <console> abort

Post by Rossine »

Hello Luigi,

Could it be that you look for when calling for the second time option "Open QT GUI window" the application is terminated without notice error ?

This error occurs there with you too ? If so, you could fix it ?

Best Regards,

Rossine.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: Sample <console> abort

Post by l3whmg »

Hi friends.
Please, remember that some dll can't be installed on your system. this one "mingwm10.dll" is one of them.
You have many possibilities:
copy these file within your executable folder (in any folder you run a program)
or
within C:\Windows\System32 folder (I'm using WinXp)

At the same time, there are Qtcore4.dll, QtGui4.dll or QtNetwork4.dll; follow previous example.

About qgif4.dll, qjpeg4.dll and many other there are different solutions:
copy "pulgins\imageformats" within your executable folder (in any folder you runa a program)
or
create a valid qt.conf

I write about this in other post.

@Rossine
I will check

Cheers
Luigi from Italy
www.L3W.it
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Sample <console> abort

Post by Rossine »

Hello Luigi,
l3whmg wrote:Hi friends.
Please, remember that some dll can't be installed on your system. this one "mingwm10.dll" is one of them.
You have many possibilities:
copy these file within your executable folder (in any folder you run a program)
or
within C:\Windows\System32 folder (I'm using WinXp)

At the same time, there are Qtcore4.dll, QtGui4.dll or QtNetwork4.dll; follow previous example.

About qgif4.dll, qjpeg4.dll and many other there are different solutions:
copy "pulgins\imageformats" within your executable folder (in any folder you runa a program)
or
create a valid qt.conf

I write about this in other post.

@Rossine
I will check

Cheers
OK.

This sample work´s fine:

Code: Select all

/*
 * $Id: demo_1.PRG 760 2011-10-21 12:01:51Z l3wonsf $
*/

/*
 * HMG 4 demo
 * (c) 2010 Roberto Lopez <mail.box.hmg@gmail.com>
*/

/*
 This demo shows how to mix console and GUI in the same EXE.
 In fact, the console part, WVG, is not a real console, is a "pseudo-console" emulated in a graphics environment.
 But this work just as a pure console does.
*/

#include "hmg.ch"
#include "hbqtgui.ch"

Function Main

   LOCAL oWindow

   HbQt_ErrorSys()

   // Request WVG to be linked.
   REQUEST HB_GT_WVG
   REQUEST HB_GT_WVG_DEFAULT

   DEFINE MAINWINDOW oWindow
      Width  400
      Height 400
      Title  'Calling a QT window from pseudo-console WVG'
      OnInit oWindow:Center()

      ON KEY ESCAPE OF oWindow ACTION oWindow.release

      @ 40,40 Button oButton1        ;
         Caption 'Click to Win_Dos'  ;
         On Click Win_Dos()

   END WINDOW

   oWindow:Activate()

   Return Nil

function Win_Dos

   LOCAL nPrompt
   local pGTDOS, pGTWIN

   pGTDOS := hb_gtCreate( "WVG" )
   pGTWIN := hb_gtSelect( pGTDOS )

   // Console code
   SETMODE( 25, 80 )
   SET MESSAGE TO 24

   DO WHILE .T.
      CLEAR SCREEN
      @ 3, 20 SAY    "Select an option  " COLOR "W+/R"

      @ 04, 19 TO 07,38 DOUBLE
      @ 05, 20 PROMPT "Text MemoEdit()   " MESSAGE "Displays a text file"
      @ 06, 20 PROMPT "Return To window  " MESSAGE "Ends demo"

      MENU TO nPrompt

      if     nPrompt = 1
             @ 00, 00 TO MAXROW(), MAXCOL()
             MemoEdit( "This is text mode MemoEdit", 01, 01, MAXROW()-1, MAXCOL()-1 )
      elseif nPrompt = 2 .or. nPrompt = 0
             EXIT
      END

   ENDDO

   hb_gtSelect( pGTWIN )

   Return Nil
In demo_1.prg the problem must be occurring as mainwindow is closed.

Best Regards,

Rossine.
Post Reply