[Issue 6818] New: Globally shared class instances are never released
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 16 15:25:04 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6818
Summary: Globally shared class instances are never released
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-10-16 15:24:07 PDT ---
import std.stdio;
__gshared Foo foo;
class Foo
{
~this() { writeln("Release Foo"); }
}
void main() { foo = new Foo; }
OTOH the dtor gets properly called if it's a thread-local instance.
Is this a known bug?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list