Hi In answer to my own email about notepad/memo control I have found an interesting behaviour. When using the delphi editor and you are at the beginning of a line you need to press ctrl-left to go to the end of the previous line. If you do this in notepad (or any memo field) then you appear to go to the end of the previous line but in fact you are positioned in the twilight zone between the cr and lf at the end of the line. Press any character key and the next line jumps up to the end of the current line, press enter and the line drops down again but the cursor stays on the current line. You need to delete the hidden cr and lf characters to get back to normal. Note that you can just press the left arrow to go to the end of the previous line in notepad. I will retrain myself. Not sure if this is ment to be a bug or a feature. Sure annoyed the heck out of me for a few months. Just thought someone might be interested.
ps I haven't been inundated with suggestions for XP keeping hold of file locks so I assume that everyone, like me, has given up and waiting for SP2? Warren -----Original Message----- From: Warren Slater (ASL) [mailto:[EMAIL PROTECTED] Sent: Friday, 28 November 2003 02:16 p.m. To: Dug (E-mail) Subject: RE: [DUG] Xp File Access Error Hi In addition to the previous email. (noise of a can of worms slowly being opened in background) Since we have started using XP we have had, both internally and with customers, numerous problems where xp seems to leave a lock on a file even after a user has closed it(delphi apps,office,myob). If you try to access the file again you get an error (If the application is nice it tells you that someone else is using it). You either need to restart the server/machine or go into computer managent and delete the lock that way. This is with xp clients and 2000 server (non xp clients seem to clear locks ok when they are finished with a file). We also open files in a licence directory user.001 user.002 etc to keep track of the number of users running our program. The licence program trys to lock each file exclusively until it find one not locked and keeps hold of that. Occasionally things go a bit strange and when trying to a file exclusively it seems to wait for about 30sec before timing out and carrying on to the next file. Again with XP clients. This has worked with no problems for 5+years until XP. Finally I have had a problem where a delphi program opens a file (assign,reset) reads the data and then updates the information (rewrite). This seemed to put a lock on the file and I needed to reboot the server. Fixed it by closing the file, deleting it (deletefile) and then reopening it for writing (assign,rewrite). This was with a win98 client and a XP server. This also has worked for 5+ years until XP! Most of these problems seemed to have appeared with SP1 I think We have tried switching off opportunistic locking as per the microsoft website with limited or no success. I am not sure if all these problems are related (appart from all being in XP) Are there others having these problems and what if anything have you done to try and get around them? Is everyone else, like me, waiting/praying for SP2 in hope that it will fix the problems? Thanks Warren ps Also does anyone else get the problem in notepad where you use the mouse to position the cursor at the end of a line and then text you inert seems to do between the CR and LF so the next line comes up? This must be in the common controls as the the memo control in delphi also exhibits this behaviour. pps Apart from the above I think that XP is pretty neat really. Definitely like the faster start up and shut down times. -----Original Message----- From: Paul A Norman [mailto:[EMAIL PROTECTED] Sent: Friday, 28 November 2003 12:48 p.m. To: [EMAIL PROTECTED] Subject: [DUG] Xp File Access Error Hi, Anyone struck a situation where a prog is installed on an Xp machine as Admin, but sometines it throws File Access Exception errors when user, as Admin, even tries to save a simple text file from with in prog? Or make directories on the same drive useing forecdirectories? This is a fickle problem. Also a paradox databse freezes sometimes on that machine - new machine, clean install, and Xp updated. Prog works fine on two other Xp machines, 98 and I think a 95 machines. Any thoughts appreciated Paul [EMAIL PROTECTED] http://PaulANorman.com Ph NZ 021 782 433 Fx NZ 021 292 2433 Overseas: Ph. +6421782433 Fax +64212912433 P.O. Box 1005 Nelson 7015 New Zealand ############################################################################ ######### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more information please visit www.marshalsoftware.com ############################################################################ ######### _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more information please visit www.marshalsoftware.com ##################################################################################### _______________________________________________ Offtopic mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/offtopic
