[SOLVED] ZDbcIntfs.pas hangs when using in a DLL with last revision
Posted: 17.01.2019, 12:23
I use ZDbcIntfs.pas in a unit for referencing tiNone enum type, also use this unit in a DLL, but now the DLL hangs because of the timer creation.
fault code:
and is invoked in:
Any help is appreciated.
fault code:
Code: Select all
{ TZDriverManager }
{**
Constructs this object with default properties.
}
constructor TZDriverManager.Create;
begin
FDriversCS := TCriticalSection.Create;
FLogCS := TCriticalSection.Create;
FDrivers := TZCollection.Create;
FLoggingListeners := TZCollection.Create;
FGarbageCollector := TZCollection.Create;
FHasLoggingListener := False;
FTimer := TZThreadTimer.Create(ClearGarbageCollector, 1000, True); //--> THIS LINE IS THE CULPRIT
end;
Code: Select all
initialization
DriverManager := TZDriverManager.Create;
GlobalCriticalSection := TCriticalSection.Create;