FWH 18.03 Dialog Problem (SOLVED)

FWH 18.03 Dialog Problem (SOLVED)

Postby fraxzi » Fri May 25, 2018 1:59 am

Hi All,

Using FWH 18.03, when you open and close dialog (from resource) several times, the entire FWH app crashed.

to simplify/replicate:

Code: Select all  Expand view  RUN

FUNCTION uPopup_RecordSet()
 local oDlg,;
       oBarBottom

 local xRet

   DEFINE DIALOG oDlg RESOURCE 'DLG_TEST' TRUEPIXEL;
          STYLE nOr( WS_POPUP, WS_THICKFRAME );
          TITLE ''

          oDlg:lHelpIcon := .F.

          REDEFINE BUTTONBAR oBarBottom;
                   ID 1001 OF oDlg 2010

          DEFINE BUTTON OF oBarBottom RESOURCE 'exitdoor16' CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

   ACTIVATE DIALOG oDlg;
            ON INIT ( oDlg:oBottom := oBarBottom )

return( xRet )
 


RC:
Code: Select all  Expand view  RUN

DLG_TEST DIALOGEX 0,0,284,123
FONT 9,"Verdana",0,0,0
STYLE NOT WS_VISIBLE|WS_POPUP|WS_THICKFRAME
BEGIN
  CONTROL "",1001,"ToolbarWindow32",WS_CHILDWINDOW|WS_VISIBLE|TBSTYLE_FLAT|TBSTYLE_WRAPABLE|TBSTYLE_TOOLTIPS|CCS_NORESIZE|CCS_BOTTOM,2,106,42,14
END
 



there's NO ISSUE with FWH16.06..

I think this is a bug in FWH18.03??
Last edited by fraxzi on Thu Jun 07, 2018 6:51 am, edited 3 times in total.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby Antonio Linares » Fri May 25, 2018 4:39 am

Dear Frances,

Do you get a *.log file ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Fri May 25, 2018 5:39 am

Antonio Linares wrote:Dear Frances,

Do you get a *.log file ?



No *.Log file generated. It just stop working and I need to end-task it. :(
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Fri May 25, 2018 5:47 am

Hi Mr. Antonio,

It worked well with FHW 18.02!! :)

There's a problem with 18.03 :) :)
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Mon May 28, 2018 1:07 am

Hi Mr. Antonio,

any news on the issue?
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby cnavarro » Mon May 28, 2018 2:14 am

Frances, I tested your sample and your RC several times ( 60 - 70 open and close ) and run all OK
Please explain better if you environment is different than my example

Code: Select all  Expand view  RUN


#include "fivewin.ch"


Function Main()

   local oWnd

   DEFINE WINDOW oWnd TITLE "Test Dialog RCs"

   @ 10, 10 BUTTON "Press" OF oWnd SIZE 100, 40 PIXEL ACTION uPopup_RecordSet()


   ACTIVATE WINDOW oWnd

Return nil

FUNCTION uPopup_RecordSet()
 local oDlg,;
       oBarBottom

 local xRet

   DEFINE DIALOG oDlg RESOURCE 'DLG_TEST' TRUEPIXEL;
          STYLE nOr( WS_POPUP, WS_THICKFRAME );
          TITLE ''

          oDlg:lHelpIcon := .F.

          REDEFINE BUTTONBAR oBarBottom;
                   ID 1001 OF oDlg 2010

          DEFINE BUTTON OF oBarBottom RESOURCE 'database' CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

          DEFINE BUTTON OF oBarBottom RESOURCE 'debug' CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

          DEFINE BUTTON OF oBarBottom RESOURCE 'debug16' CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

          DEFINE BUTTON OF oBarBottom RESOURCE 'deldbf16' CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

   ACTIVATE DIALOG oDlg ON INIT ( oDlg:oBottom := oBarBottom )

return( xRet )
 

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Mon May 28, 2018 3:32 am

Hi Mr. Cristobal,

Using BCC73, Latest xHB on Win 8.1 pro.
I test it again, and still freezes with no log to trace.

I am using xMate with MariaDB lib (libmariadb.lib) included as this is integral part.

Thanks.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby nageswaragunupudi » Mon May 28, 2018 4:24 am

I too tried several times and did not get any problem.
I tested with xHarbour and Harbour with bcc73 and msvc.
But I did not test with commercial xHB.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Tue May 29, 2018 12:46 am

Dear All,

I upgraded my PellesC 5.x to 8.x (which compiles my .RC)..
So far the problem disappear.

Gracias!
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Tue May 29, 2018 6:38 am

fraxzi wrote:Dear All,

I upgraded my PellesC 5.x to 8.x (which compiles my .RC)..
So far the problem disappear.

Gracias!



So sorry. I was compiling with 18.02 profile with xMate...

Problem persisted with FWH 18.03...
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem

Postby fraxzi » Tue May 29, 2018 6:41 am

nageswaragunupudi wrote:I too tried several times and did not get any problem.
I tested with xHarbour and Harbour with bcc73 and msvc.
But I did not test with commercial xHB.



I though the upgrade to PellesC v8 will resolved. But to no avail.

I am using:

BCC73
PellesC v8
xHB1.21.10229
FWH18.03 with MariaDB Lib

Surprisingly, there's no issue with FWH 18.02..

This is the where the function was called:
Code: Select all  Expand view  RUN


...
REDEFINE GET oGet VAR cVar;
               ID 1003 OF oDlg UPDATE;
               PICTURE '@!';
               BITMAP 'finddoc16';
               ACTION ( uPopup_RecordSet() )

...
 


:( :( :( :( :(
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem (STILL)

Postby nageswaragunupudi » Tue May 29, 2018 6:50 am

Can you try your first sample with xHarbour or Harbour? This is to know if the problem is with only xHB (commerical) or general. That helps us to locate the problem.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FWH 18.03 Dialog Problem (STILL)

Postby fraxzi » Tue May 29, 2018 8:35 am

nageswaragunupudi wrote:Can you try your first sample with xHarbour or Harbour? This is to know if the problem is with only xHB (commerical) or general. That helps us to locate the problem.



Hi Mr. Rao,

I downloaded xHB 1.2.3.1031 for BCC73 and recompile all with no problem.

The problem is exactly the same with xHB 1.2.1.10229....

:( :( :( :( :( :(
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: FWH 18.03 Dialog Problem (STILL)

Postby nageswaragunupudi » Tue May 29, 2018 9:30 am

I built your 1st sample with xHarbour and executed the function 22 times. There is no crash. Should we execute more times?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FWH 18.03 Dialog Problem (STILL)

Postby Enrico Maria Giordano » Tue May 29, 2018 12:00 pm

Frances, can you reproduce the problem with this sample?

Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL i

    FOR i = 1 TO 100
        uPopup_RecordSet()
    NEXT

    ? "OK"

    RETURN NIL


FUNCTION uPopup_RecordSet()
 local oDlg,;
       oBarBottom

 local xRet

   DEFINE DIALOG oDlg RESOURCE 'DLG_TEST' TRUEPIXEL;
          STYLE nOr( WS_POPUP, WS_THICKFRAME );
          TITLE ''

          oDlg:lHelpIcon := .F.

          REDEFINE BUTTONBAR oBarBottom;
                   ID 1001 OF oDlg 2010

          DEFINE BUTTON OF oBarBottom CENTER TRANSPARENT;
                 ACTION ( xRet := NIL, oDlg:End() );
                 TOOLTIP {'Cancel Selection', 'CLOSE'}  

   oDlg:bStart = { || SysRefresh(), oDlg:End() }

   ACTIVATE DIALOG oDlg;
            ON INIT ( oDlg:oBottom := oBarBottom )

return( xRet )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests