Welcome, Guest. Please login or register.

Author Topic: It's all double-DOS to me...  (Read 2365 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Noster

  • Sr. Member
  • ****
  • Join Date: Jan 2004
  • Posts: 375
    • Show all replies
Re: It's all double-DOS to me...
« on: April 12, 2004, 01:15:12 PM »
Hi

> As you can see you should store the result of CurrentDir and change it back before you leave.

Yeah, indeed you really MUST store the result of CurrentDir() and restore it before your application terminates, because this directory lock is not owned by your application, it is owned by the shell your application is started from (or the Workbench, if started by Workbench) and so you will corrupt your system if you simply free this lock and may meet the Guru...

Noster
DON\\\'T PANIC
    Douglas Adams - Hitch Hiker\\\'s Guide to the Galaxis