Article View: borland.public.cppbuilder.nativeapi
Article #762Cannot delete a directory
From: Jos�
Date: Mon, 07 Jan 2008 13:18
Date: Mon, 07 Jan 2008 13:18
12 lines
1206 bytes
1206 bytes
My program uses findfirst() and rename() to remove all files from a folder. And then it executes RemoveDir() and this fails. When I try to remove the empty folder with the Windows Explorer, this fails. When I close my C++ program, I can remove the folder with the Explorer. It appears that my program locks the folder. Is there a remedy? -- Jos�
Technical Details
Message-ID:
<ne94o39s71g92csaaup85ufdomjisjvu4h@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aa6e00669d5b96c9,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Cannot delete a directory Date: Mon, 07 Jan 2008 14:18:30 +0100 Message-ID: <ne94o39s71g92csaaup85ufdomjisjvu4h@4ax.com> X-Newsreader: Forte Agent 4.2/32.1117 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.73.146 X-Trace: newsgroups.borland.com 1199712007 82.75.73.146 (7 Jan 2008 05:20:07 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail