FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour NETWORK problems with WINDOWS 7
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
NETWORK problems with WINDOWS 7
Posted: Thu Jun 03, 2010 04:03 PM
To all:

I do have problems with WINDOWS 7 against WINDOWS 7 or 2008 SERVER.

This is my test environment.

I am connected with MSTSC to the server where I copy a file to a folder.
(if I copy the file from the local PC to the server folder there is no problem!)

On my WINDOWS 7 PC I run the attached test.exe.

I check the for the file. I takes from 3 to 7 sec. till the test – program gets notice.

Could someone please make a similar test?

Thanks in advance
Otto

Here is a short video to demonstrate the behavior.





http://www.atzwanger-software.com/fw/directory_test/index.html

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


static oTmr


function Main()

   local oDlg, oProg
   
   DEFINE DIALOG oDlg TITLE "Progress and timer"
 
   
   @ 2.5, 10 BUTTON "End" ACTION oDlg:End()
   
   ACTIVATE DIALOG oDlg CENTER ;
      ON INIT (  Timer( oDlg, oProg ) )
   
return nil   

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

function Timer( oDlg, oProg )
   
   DEFINE TIMER oTmr INTERVAL 300 ;
      ACTION ( checkDir() ) OF oDlg

   ACTIVATE TIMER oTmr

return nil   
//----------------------------------------------------------------------------//

function checkDir()
 local aDirServ := {}
    oTmr:Deactivate()
    
    aDirServ := directory( "r:\itouch\bills\" + "*.dbf", "D" )

      if len(aDirServ) > 0
msginfo(   UPPER( aDirServ[1,1] ) )

        endif


  oTmr:activate()
return nil
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 07:28 AM
To all:
I made the same test program in VB6 too.
The results are the same as with the (x)harbour test program.

To all:
Please help testing – more and more users switch to WINDOWS 7.
If there is a special netork setup necessary we have to fine this.

Could someone please report his test results.

Thank you so much for your help.
Best regards,
Otto

Code (fw): Select all Collapse
VB6 code!!!!

Private Sub Form_Load()
     Set fso = New FileSystemObject
    Timer1.Interval = 300
  
End Sub


Private Sub Timer1_Timer()

    Dim cLockDatei        As String
        Timer1.Enabled = False
        cLockDatei = "r:\itouch\bills\" & "test.txt"

        If fso.FileExists(cLockDatei) = True Then
            
            MsgBox ("file ok")
        
        Else

        End If
        Timer1.Enabled = True
End Sub
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 10:41 AM

Hello Otto

maybe regard SMB2 ?

viewtopic.php?f=3t=18851p=99309hilit=smb#p99309

Maurizio

www.nipeservive.com

&&&

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 11:22 AM
Otto,

I tested your xHarbour example, as well from Windows 7 to Windows 7 and from Windows 7 to Windows Server 2008.

I don't have any problem.

A few weeks ago, I had an indexing problem with Windows 7 to Windows SBS 2008 (which is always 64-bits).

Have a look at this topic about this problem : http://forums.fivetechsupport.com/viewtopic.php?f=3&t=18851.

Maybe, this is the problem on your network too. Try to disable SMB 2.0 on your server and on your Windows 7 PC. Maybe, your problem is solved then.

Good luck.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 11:37 AM

Hello Maurizio, hello Michel,

thank you for your help.
I will test with SMB2 disabled.

Michel,

Did you test running the program on WINDOWS 7 client and make the changes inside the folder from within 2008 Server?

As from XP and mobile 6.1 the changes are seen within milliseconds do you think to disable SMB2 is also necessary
on the server.

I opened a support case with Microsoft. I get at 2.o’clock a call. I will report what the Microsoft support is suggesting.

Best regards,
Otto

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 12:41 PM

Otto,

I did a lot of tests from Windows 7 to Windows Server 2008 and since I disabled SMB 2.0, I didn't have any problem anymore.

The SMB 2.0 problem only refers to Windows Vista, Windows 7 and Windows 2008. For XP there never was any problem.

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 12:44 PM

Michel,
do you have a description – or a link where I can find a description - how to disable SMB 2.

Thanks in advance
Otto

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 01:21 PM
Otto,

This links describes how to disable SMB 2.0, on th 64-bit server as well as on the Windows 7 or Windows Vista PC's.

http://www.caseware.com/support/caseknowledge/file-corruption-when-using-windows-vista-windows

Good luck.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 03:16 PM

Michel,

I disabled SMB but now I can’t get net access any more. Is there something special to follow?

Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: NETWORK problems with WINDOWS 7
Posted: Fri Jun 04, 2010 03:49 PM

Hello Michel,
I restarted the system again and now all is working.
I only changed the SERVER registry. Now speed is the same as with XP.
Best regards,
Otto

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: NETWORK problems with WINDOWS 7
Posted: Sat Jun 05, 2010 10:33 AM

Otto,

Thanks but no thanks. I was glad to be somewhat helpful to you.

Have a nice weekend.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion