I have a program that creates a new folder and copies paradox files into the folder when you create a new "office". This all works great. However, when I delete an "office", I am unable to delete the folder. All of the files within the folder were deleted without an problems. Attempting to delete the folder itself does nothing. A call to RemoveDir returns false, and RmDir returns an IOResult of 32 (sharing violation). I also noticed that I cannot delete the folder from Windows Explorer while my app is running (get the sharing violation there, too). It is a single-user, local application. Does anyone have any suggestions as to how I could get around this sharing violation error so that I can actually delete the folder itself?
Thanks
Thanks