Code Comments
Programming Forum and web based access to our favorite programming groups.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?
Post Follow-up to this messageMartin, >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]
Post Follow-up to this message>>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!
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.