[SOLVED] ZDbcIntfs.pas hangs when using in a DLL with last revision

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
EMartin
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: 22.03.2018, 16:39

[SOLVED] ZDbcIntfs.pas hangs when using in a DLL with last revision

Post by EMartin »

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:

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; 
and is invoked in:

Code: Select all

initialization
  DriverManager := TZDriverManager.Create;
  GlobalCriticalSection := TCriticalSection.Create;
Any help is appreciated.
Last edited by EMartin on 21.01.2019, 19:43, edited 1 time in total.
EMartin
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: 22.03.2018, 16:39

Re: ZDbcIntfs.pas hangs when using in a DLL with last revision

Post by EMartin »

I know that the problem is because no message processing (at least in Windows) but I wan't to implement a DLL for database connections I just need the enum types.

Thanks.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: ZDbcIntfs.pas hangs when using in a DLL with last revision

Post by marsupilami »

Could you please try the latest revision? Egonhugeist probably has solved the problem.

Best regards,

Jan
EMartin
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: 22.03.2018, 16:39

Re: ZDbcIntfs.pas hangs when using in a DLL with last revision

Post by EMartin »

I can confirm that the problem has been solved.

Thank you.
Post Reply