HMG 4 All-in-one Demo

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

Moderator: Rathinagiri

User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: HMG 4 All-in-one Demo

Post by concentra »

rathinagiri wrote:
Weird enough, if I run the demo 3 or 4 times it starts !!!!!
In my Windows Vista Ultimate also, I encounter the same problem. I don't have Avast anti virus.
I am trying to debug this, removing one control at a time and testing...
It will take some time...
[[]] Mauricio Ventura Faria
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 4 All-in-one Demo

Post by Rathinagiri »

Do you have two different versions of QT runtime libraries?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Jairo Maia
Posts: 53
Joined: Sun Jul 17, 2011 1:47 pm
Location: Campinas - SP - Brazil

Re: HMG 4 All-in-one Demo

Post by Jairo Maia »

Hi Maurício,
concentra wrote:Could you inspect the Avast log and post any message Avast produces when blocking the file ?
When I run under Windows XP with Avast, behavior is the same as quoted by Daniel, and have no message in the Avast log. It simply no work. For run it, must disable Avast.

If I run under Windows Seven Ultimate, I no see the same problem reported by you and Rathinagiri. My Windows is 32 bits. I have no Windows 64 bits, can be it?

Sorry can´t help, because I´m begginer in Harbour, but I´m sure that you go solve it soon.

Regards,
Jairo
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG 4 All-in-one Demo

Post by danielmaximiliano »

Hola :
puede ser que el antivirus detecte algun evento de manejo de teclado que crea que es un Keylogger???

Hi
may be that the antivirus detect a keyboard event handling that you think is a Keylogger??
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: HMG 4 All-in-one Demo

Post by concentra »

rathinagiri wrote:Do you have two different versions of QT runtime libraries?
No, all 4.7.0.0
[[]] Mauricio Ventura Faria
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: HMG 4 All-in-one Demo

Post by concentra »

Not sure this is the only problem...
Virtualgrid crashes when tabbed. And this don't occur all times, when more code with other controls are present it may occur or not. :shock:
Test this code:

Code: Select all

#include "hmg.ch"

FUNCTION Main

   LOCAL aRowsVirtual [1000] [7]
   LOCAL i
   LOCAL oWindow
   LOCAL oTab1
   LOCAL oVirtualGrid
   LOCAL oTimer

   HbQt_ErrorSys()

   FOR i := 1 TO 1000
      aRowsVirtual[i] := {STR(i),1000.00,DATE(),.T.,DATE(),12,1}
   NEXT i

   DEFINE WINDOW oWindow
      Width      700
      Height     620
      Title      'Problem Demo!'

      DEFINE TAB oTab1 ROW 5 COL 5 Width 690 Height 610

         DEFINE PAGE 'VirtualPageGrid'

            DEFINE VIRTUALGRID oVirtualGrid
               Width    680
               Height   580
               ColumnWidths   {150,60,70,40,90,40,100}
               ColumnHeaders  {'Column 1','Column 2','Column 3','Column 4','Column 5','Column 6','Column 7'}
               Items     aRowsVirtual
               ColumnControls {{'TEXTBOX','CHARACTER'},;
                               {'TEXTBOX','NUMERIC','9,999.99'},;
                               {'TEXTBOX','DATE'},;
                               {'CHECKBOX','Yes','No'},;
                               {"DATEPICKER","UpDown"},{"SPINNER",1,1000},;
                               {"COMBOBOX",{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}};
                               }
            END VIRTUALGRID

         END PAGE

      END TAB

   END WINDOW

   oWindow:Activate()

   RETURN NIL
It crashes at VirtualGrid:Refresh() when calling ::oQTObject:setModel( ::QAbstractItemModel ).
If tab and page are removed it runs Ok.
[[]] Mauricio Ventura Faria
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: HMG 4 All-in-one Demo

Post by concentra »

Confirmed that if VirtualGrid and Browse are removed the everything\demo_1 runs Ok...
But I was unable to trace the problem beyond ::oQTObject:setModel( ::QAbstractItemModel ), since this seems to be a problem with HBQT or QT itself.
[[]] Mauricio Ventura Faria
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 4 All-in-one Demo

Post by Rathinagiri »

Happy that you have found the culprit!

But, the culprit is inside 'cause of me! :( I will check again to see whether I can do something.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: HMG 4 All-in-one Demo

Post by mrduck »

It crashes at VirtualGrid:Refresh() when calling ::oQTObject:setModel( ::QAbstractItemModel ).
If tab and page are removed it runs Ok.

I had a similar crash in browse.prg, I spent a week trying to understand the problem... and found that the problem is completely unrelated and due to a bug in hbQt.

Please upgrade to harbour 3.0 (it was solved by a commit just before the 3.0 release) and then report if the error is there again.

Francesco
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 4 All-in-one Demo

Post by Rathinagiri »

Thanks for the info Francesco.

Now I think the problem is solved.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply