Call of rmdir in destructor causes InvalidMemoryOperationError

2015-01-01 Thread Timo Gransch via Digitalmars-d-learn
Hi, I have a class which unzips an archive into a temporary directory below the system temp folder. I want to delete this temporary directory in the class's destructor, but when I call rmdir there, I get an core.exception.InvalidMemoryOperationError@(0) The effect is not limited to this

Re: Call of rmdir in destructor causes InvalidMemoryOperationError

2015-01-01 Thread thedeemon via Digitalmars-d-learn
On Thursday, 1 January 2015 at 15:14:41 UTC, Timo Gransch wrote: Hi, I have a class which unzips an archive into a temporary directory below the system temp folder. I want to delete this temporary directory in the class's destructor, but when I call rmdir there, I get an

Re: Call of rmdir in destructor causes InvalidMemoryOperationError

2015-01-01 Thread Daniel Kozak via Digitalmars-d-learn
Timo Gransch via Digitalmars-d-learn píše v Čt 01. 01. 2015 v 16:14 +0100: Hi, I have a class which unzips an archive into a temporary directory below the system temp folder. I want to delete this temporary directory in the class's destructor, but when I call rmdir there, I get an

Re: Call of rmdir in destructor causes InvalidMemoryOperationError

2015-01-01 Thread Timo Gransch via Digitalmars-d-learn
Am Thu, 01 Jan 2015 16:07:06 + schrieb thedeemon dl...@thedeemon.com: Solution in this case: call rmdir not from destructor. Thanks (also to Daniel Kozak) for the information. I moved the functionality to an explicitly called method. Best regards, Timo