FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OS Error .EXE is Not Responding
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
OS Error .EXE is Not Responding
Posted: Sat Apr 20, 2019 05:51 PM
Dear All ,

I got the below error when application was running.

Could you please guide me on this. Thanks in advance...!

Code (fw): Select all Collapse
Description:
  A problem caused this program to stop interacting with Windows.

Problem signature:
  Problem Event Name:   AppHangB1
  Application Name: vimfa.exe
  Application Version:  0.0.0.0
  Application Timestamp:    00000000
  Hang Signature:   521e
  Hang Type:    0
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:    1033
  Additional Hang Signature 1:  521e9c610211bde94178e59d988aade6
  Additional Hang Signature 2:  ba33
  Additional Hang Signature 3:  ba3395d0c97c9a5a3e9ecff21551e88e
  Additional Hang Signature 4:  521e
  Additional Hang Signature 5:  521e9c610211bde94178e59d988aade6
  Additional Hang Signature 6:  ba33
  Additional Hang Signature 7:  ba3395d0c97c9a5a3e9ecff21551e88e

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


Thanks
Shridhar
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OS Error .EXE is Not Responding
Posted: Sun Apr 21, 2019 09:41 AM

Please check if a log file has been created in the same folder where your EXE is

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Sun Apr 21, 2019 11:33 AM

Dear Antonio ,

I do not see any log file in the .EXE folder.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OS Error .EXE is Not Responding
Posted: Sun Apr 21, 2019 04:37 PM

Are you able to reproduce it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Sun Apr 21, 2019 05:01 PM

Dear Antonio ,

Yes I am able to reproduce it. But no any log file generated to debug the error message.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OS Error .EXE is Not Responding
Posted: Mon Apr 22, 2019 08:29 AM

Are you able to reproduce it on a little test that you may send me ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Mon Apr 22, 2019 12:45 PM

Dear Antonio ,

There are 6-7 PROCEDURE/FUNCTION levels, I need to arrange them into one file to be able to send you.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: OS Error .EXE is Not Responding
Posted: Mon Apr 22, 2019 01:07 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Mon Apr 22, 2019 02:32 PM
Dear Antonio ,

Finally ERROR has been revealed. The issue is related with Garbage Value on Multiply Topic.

Conclusion : The XBROWSE Method MakeTotals() does not work when Garbage value populated in the Data source.

Given below code is for the same, after executing the code you will see the XBROWSE grid and you need to provide the same either of the value which is already being displayed in the XBROWSE gird. As soon as you entered the same value the App.EXE goes hang.

Code (fw): Select all Collapse
#include "fivewin.ch"


function main
  local oDlg
  local oFont
  local nRate := 597.67
  local nQTy := 100
  local nAmt := ( nRate *  nQTy )
  local aoGET := Array(5)
  local oBrw
  local aInvData := {{ "Prd 1" , 597.67 , 100 , 0 } }



   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
   DEFINE DIALOG oDlg SIZE 900,700 PIXEL TRUEPIXEL FONT oFont

   @ 020, 020 XBROWSE oBrw SIZE 540, 200 PIXEL OF oDlg FONT oApp:oFontGet  ;
      DATASOURCE aInvData ;
      COLUMNS 1, 2, 3, 4  ;
      HEADERS "Item ", "Rate",  "Qty.",  "Amount" ;
      PICTURES NIL,    "@Z 99,999.99", "@Z 99,999", "@Z 99,99,999.99" ;
      COLSIZES 200,    100,100, 110 ;
      CELL LINES NOBORDER FASTEDIT FOOTERS

   WITH OBJECT oBrw:aCols[ 2 ]

      :nEditType     = EDIT_GET
      :bEditValid := < | oGet |

                     oBrw:aCols[ 4 ]:Value := ( oGet:VarGet()  * oBrw:aCols[ 3 ]:Value ) // Rate * Qty
                     oBrw:MakeTotals()
                     oBrw:Refresh()

                     return .t.
                     >

   END

   WITH OBJECT oBrw:aCols[ 3 ]

      :nEditType     = EDIT_GET
      :bEditValid := < | oGet |

                     oBrw:aCols[ 4 ]:Value := ( oBrw:aCols[ 2 ]:Value  * oGet:VarGet() ) // Rate * Qty
                     oBrw:MakeTotals()
                     oBrw:Refresh()

                     return .t.
                     >

   END

   WITH OBJECT oBrw

      :CreateFromCode()
   END


//PICTURE "@Z 99,99,99,99,999.99"
   ACTIVATE DIALOG oDlg


return nil
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OS Error .EXE is Not Responding
Posted: Mon Apr 22, 2019 05:43 PM

Dear Shridhar,

Many thanks for your great feedback

We are currently checking this topic and hopefully we will publish a solution for it asap.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Thu May 23, 2019 02:12 PM

Dear Antonio ,

Any news on this ?

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: OS Error .EXE is Not Responding
Posted: Fri May 24, 2019 10:15 AM
Please try this code
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

  local oDlg
  local oFont
  local nRate := 597.67
  local nQTy := 100
  local nAmt := ( nRate *  nQTy )
  local aoGET := Array(5)
  local oBrw
  local aInvData := {{ "Prd 1" , 597.67 , 100 , 0 } }
  local aBlank := { Space( 5 ), 0.00, 0.00, 0.00 }

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
   DEFINE DIALOG oDlg SIZE 900,700 PIXEL TRUEPIXEL FONT oFont

   @ 020, 020 XBROWSE oBrw SIZE 540, 200 PIXEL OF oDlg FONT oFont  ;
      DATASOURCE aInvData ;
      COLUMNS 1, 2, 3, 4  ;
      HEADERS "Item ", "Rate",  "Qty.",  "Amount" ;
      PICTURES NIL,    "@Z 99,999.99", "@Z 99,999", "@Z 99,99,999.99" ;
      COLSIZES 200,    100,100, 110 ;
      CELL LINES NOBORDER FASTEDIT FOOTERS

   WITH OBJECT oBrw:aCols[ 1 ]
      :nEditType     = EDIT_GET
   END

   WITH OBJECT oBrw:aCols[ 2 ]
      :bEditWhen     = { || !Empty( oBrw:aRow[ 1 ] ) }
      :nEditType     = EDIT_GET
   END

   WITH OBJECT oBrw:aCols[ 3 ]
      :bEditWhen     = { || !Empty( oBrw:aRow[ 1 ] ) }
      :nEditType     = EDIT_GET
      :nFooterType   = AGGR_SUM
   END

   WITH OBJECT oBrw:aCols[ 4 ]
      :bEditValue    = { || oBrw:aRow[ 4 ] := oBrw:aRow[ 2 ] * oBrw:aRow[ 3 ] }
      :nFooterType   = AGGR_SUM
   END

   WITH OBJECT oBrw
      :bClrStd    := { || { CLR_BLACK, If( Empty( oBrw:aRow[ 1 ] ), CLR_YELLOW, CLR_WHITE ) } }

      :bPastEof   := <||
         if !Empty( oBrw:aRow[ 1 ] )
            AAdd( oBrw:aArrayData, AClone( aBlank ) )
            oBrw:GoDown()
         endif
         return nil
         >

      :bChange    := <||
         if oBrw:nArrayAt < Len( oBrw:aArrayData )
            if Empty( ATail( oBrw:aArrayData )[ 1 ] )
               ASize( oBrw:aArrayData, oBrw:nLen - 1 )
               oBrw:Refresh()
            endif
         endif
         return nil
         >

      :MakeTotals()
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED

return nil
Regards



G. N. Rao.

Hyderabad, India
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: OS Error .EXE is Not Responding
Posted: Mon May 27, 2019 01:04 PM

Dear Sir ,

Many Thanks for this XBROWSE code pattern, I am rewriting my existing code with this pattern.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB

Continue the discussion