Removed usage of constructor and destructor for Delphi 2010 because of random access violation.