Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Holding locks with Windows 98 & 2003 "Server"
I am creating files using SET DEVICE TO PRINT and SET PRINTER TO filename -
(ok actually I am using SET(24 ) ect as I can understand the code better!)

However on Win98 with 2003 Server the files are occasionally held open
despite me closing them XP WS is fine all the time.

I force a close by SETting to a dummy name

Any ideas ? Is it a client setting in WIndows?



Report this thread to moderator Post Follow-up to this message
Old Post
Martin
11-16-04 11:43 PM


Re: Holding locks with Windows 98 & 2003 "Server"
Martin,

>I am creating files using SET DEVICE TO PRINT and SET PRINTER TO filename -
>(ok actually I am using SET(24 ) ect as I can understand the code better!)

Although I generally prefer manifest constants (the longer the better
<g> ) I agree that in the SET(_SET_PRINTER) case the choice of name for
the constant isn't exactly crystal clear.

>However on Win98 with 2003 Server the files are occasionally held open
>despite me closing them XP WS is fine all the time.
>
>I force a close by SETting to a dummy name
>
>Any ideas ? Is it a client setting in WIndows?

The server keeps the file open for a while no matter what you do from
the Clipper end. The idea is that it will be accessible quicker if you
need to open it again. That is fine with files that the same user
opens again to continue reading or writing but causes problems in a
file sharing environment.

There is a registry setting, called CachedOpenLimit, that you can
change to make the server close the file immediately. The easiest way
to do that is to visit Nick Ramsay's NT Networking page at
<http://www.witzendcs.co.uk/html/nt_networking.html>
and download the reg files for server and workstation. They also take
care of a few additional registry settings that can cause problems for
Clipper applications. Remember to reboot after applying them.

Regards,
Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]

Report this thread to moderator Post Follow-up to this message
Old Post
Klas Engwall
11-16-04 11:43 PM


Re: Holding locks with Windows 98 & 2003 "Server"
>>The server keeps the file open for a while no matter what you do from 
>opens again to continue reading or writing but causes problems in a 

>There is a registry setting, called CachedOpenLimit, that you can
>change to make the server close the file immediately. The easiest way
>to do that is to visit Nick Ramsay's NT Networking page at
><http://www.witzendcs.co.uk/html/nt_networking.html>
>and download the reg files for server and workstation. They also take
>care of a few additional registry settings that can cause problems for
>Clipper applications. Remember to reboot after applying them.
>

Thanks I'll have a look!



Report this thread to moderator Post Follow-up to this message
Old Post
Martin
11-16-04 11:43 PM


Re: Holding locks with Windows 98 & 2003 "Server"
Martin,

>I am creating files using SET DEVICE TO PRINT and SET PRINTER TO filename -
>(ok actually I am using SET(24 ) ect as I can understand the code better!)

Although I generally prefer manifest constants (the longer the better
<g> ) I agree that in the SET(_SET_PRINTER) case the choice of name for
the constant isn't exactly crystal clear.

>However on Win98 with 2003 Server the files are occasionally held open
>despite me closing them XP WS is fine all the time.
>
>I force a close by SETting to a dummy name
>
>Any ideas ? Is it a client setting in WIndows?

The server keeps the file open for a while no matter what you do from
the Clipper end. The idea is that it will be accessible quicker if you
need to open it again. That is fine with files that the same user
opens again to continue reading or writing but causes problems in a
file sharing environment.

There is a registry setting, called CachedOpenLimit, that you can
change to make the server close the file immediately. The easiest way
to do that is to visit Nick Ramsay's NT Networking page at
<http://www.witzendcs.co.uk/html/nt_networking.html>
and download the reg files for server and workstation. They also take
care of a few additional registry settings that can cause problems for
Clipper applications. Remember to reboot after applying them.

Regards,
Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]

Report this thread to moderator Post Follow-up to this message
Old Post
Klas Engwall
11-19-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:02 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.