Page 2 of 3

Re: HMG 4 All-in-one Demo

Posted: Mon Jul 18, 2011 12:27 pm
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...

Re: HMG 4 All-in-one Demo

Posted: Mon Jul 18, 2011 1:04 pm
by Rathinagiri
Do you have two different versions of QT runtime libraries?

Re: HMG 4 All-in-one Demo

Posted: Mon Jul 18, 2011 2:34 pm
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

Re: HMG 4 All-in-one Demo

Posted: Mon Jul 18, 2011 2:38 pm
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??

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 12:29 pm
by concentra
rathinagiri wrote:Do you have two different versions of QT runtime libraries?
No, all 4.7.0.0

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 12:38 pm
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.

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 1:02 pm
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.

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 1:08 pm
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.

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 1:22 pm
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

Re: HMG 4 All-in-one Demo

Posted: Wed Jul 20, 2011 2:01 pm
by Rathinagiri
Thanks for the info Francesco.

Now I think the problem is solved.