Message-ID: <002601c20f4f$ebf61040$0200a8c0@peridot> From: "Peter Cassidy" To: "Eli Zaretskii" Cc: References: <3cfc069d AT duster DOT adelaide DOT on DOT net> <3d00c052$1 AT duster DOT adelaide DOT on DOT net> <2110-Sat08Jun2002185946+0300-eliz AT is DOT elta DOT co DOT il> Subject: Re: 9$$DJREN.$$T Rename bug? Date: Sun, 9 Jun 2002 10:22:18 +0930 Organization: Rocksoft Limited MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Reply-To: djgpp AT delorie DOT com > > It seems to happen when the input file name has no file extension. When > > I added ".tmp" to the end of the input file names, the problem went away. > > Could you please paste the source of the _rename function into your > program, and then step through its code with a debugger and tell what > part of it fails and why? > I've found out the .tmp thing was misleading; I had done two things: added .tmp and deleted the 'new' file. The docco says it should handle existing new files, but when I delete them first in the application, things work much better. So how do I debug in pure DOS? The supplied gdb.exe doesn't run in pure DOS, and also doesn't respond to the exe2coff/cwsdstub treatment. It only runs in a command window.