Page 1 of 1

Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 11:39 am
by Ollie
I have an established application that has been working well, untouched, for years now.

The application runs on a server in their office via a mapped network drive.

A client recently upgraded to Windows 7 64bit (new hardware).

She works in my app, keeps it open and switches between Outlook and Word etc.

Sometimes when she switches back to my app its "Not responding" and it has to be force closed.

The app doesn't do this with me (Windows 7, 32bit), but its the only software that does this on her PC - so she blames my software. I have no idea where to start.

Can anyone offer advice?

Re: Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 2:54 pm
by Antonio Linares
Ollie,

Check if there is a log file in the disk, automatically created from Harbour or FWH.

If not, you may use an existing timer of your app and create a log file meanwhile the app is running to check memory status, procname( x), etc. so if it crash you may get an idea what process was going on.

Re: Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 3:39 pm
by TimStone
Automatic log file ? Can you explain further ?

Re: Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 5:17 pm
by lucasdebeltran
Timm,

Check for hb_out.log.

Regards,

Re: Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 5:48 pm
by Ollie
Thanks Antonio for the advice,

Do you have some sample code to help me create the log file?

Ollie.

Re: Windows 7 64 bit not responding.

PostPosted: Tue Mar 20, 2012 8:01 pm
by Antonio Linares
Ollie,

Here you have an example. Please modify the value 7 used to call ProcName() and ProcLine() based on your app design. Experiment with 5, 6, 7, 8, 9, etc.

Code: Select all  Expand view
// This sample shows how to call a function in an interval time.

#include "FiveWin.ch"

static oWnd
static lActive := .f.

//----------------------------------------------------------------------------//

function Main()

   local oTmr

   DEFINE WINDOW oWnd TITLE "Activity Control"

   DEFINE TIMER oTmr INTERVAL 1000 ACTION CheckFile() OF oWnd

   ACTIVATE TIMER oTmr

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

function CheckFile()

   if ! lActive
      lActive = .t.
      LogFile( "c:\activity.log", { ProcName( 8 ), ProcLine( 8 ) } )
      // MsgInfo( "I check anything from here" )
      lActive = .f.
   endif

return nil

//----------------------------------------------------------------------------//
 

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 12:41 am
by norberto
Hi antonio, i have an problem with fwh1202 and windows 64, in my appl have menu, ribbon and backstage, click in ribbon, after in backstage and after in an item of menu, the appl hangs without errorlog.

very thanks

norberto

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 6:23 am
by Antonio Linares
Norberto,

I have been using Windows 7 64 since it become available. All my development is done on it. And never experienced those hangs. Anyhow, I trust you :-)

Try to reproduce it, locate in which section it happens. We can solve it, no problem :-)

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 7:54 am
by MarcoBoschi
This is not a solution: it's only another aspect of this problem.
If you run this program
and click on it after 3/4 seconds appears "...not responding"
It's normal in windows 7

I still

Code: Select all  Expand view
#include "fivewin.ch"

FUNCTION MAIN()
LOCAL oAspetta
LOCAL i

      oAspetta := Aspetta( .T., oAspetta, "Please wait..." , 10  )
      FOR i := 1 TO 100
          sleep(400)
      NEXT i

      oAspetta := Aspetta( .F., oAspetta, "Pease wait..." , 10 )

RETURN NIL



FUNCTION Aspetta( lAzione, oAspetta, cTesto, nSec )
LOCAL oTesto

DEFAULT nSec := 0

IF lAzione

   DEFINE DIALOG oAspetta FROM 10 , 10 TO 50 , 400 TITLE "Attesa..." PIXEL

   @ 7 , 10 SAY oTesto PROMPT cTesto OF oAspetta PIXEL SIZE 400 , 30

   ACTIVATE DIALOG oASpetta CENTER NOWAIT
   sysrefresh()

ELSE
   IF nSec > 0
      sleep( nSec * 1000 )
   ENDIF
   sysrefresh()
   oAspetta:End()

ENDIF


RETURN oAspetta
 



I have not even solved a problem similar to yours
Every so often happens to me this problem after delicate operations:
copy records from one table to another
copy files from one folder to another
after a click "Do you confirm?"

Using logfile() function I trace every single operation: nothing to report!


etc.. etc..

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 8:27 am
by Antonio Linares
Marco,

You can not create a Windows application just using a NONMODAL dialog.
Please remove the NOWAIT clause and it shoud work fine.

If you call to PostQuitMessage( 0 ) then you will instruct Windows to end your app.

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 9:44 am
by norberto
Antonio, i have run in windows 7 64 for years without problem... the error begin when i use ribbon+backstage+menu, if i remove the backstage, works fine. i guess may be something in backstage of ribbon, i will try isolate this.

Ribbon+backstage without menu, run fine too...

i have an appl running 24x7x365 in windows server with ADS ,workstations with windows 7 64, windows thin pc (7 32), windows xp, remote machines with rdp, solid, stable, but when i put backstage in ribbon this problem begin (hangs).

thanks

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 10:17 am
by MarcoBoschi
:roll:
sometimes it happens that my post is not stored....

Antonio,
it's just an example.
I use function aspetta() to warn the user he has to wait a few seconds.

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 10:52 am
by Otto
Norberto,

I don't see backstage anymore in WINDOWS 8. :-)


Best regards,
Otto

Re: Windows 7 64 bit not responding.

PostPosted: Wed Mar 21, 2012 11:14 am
by norberto
Otto, in office 15 preview i see, but this beta.