I have an issue with my dll and DB monitor since we upgrade our component to the 9.3.6 version.
Previously, we were in 8.3.11, and currently using delphi xe3.
Here is the pb: we have a application which call a DLL.
The application SQL is logged fine in DB Monitor, but not the SQL from de DLL.
In the dll, we have deactivated the SQL Monitor (removing the TOraSqlMonitor.create)
You will says: "hey dude, this is the fu*k !".
Well, in fact, yes and no.
When we have the "TOraSqlMonitor.create" in the dll, the loading of the dll hangs and never get back.
I am pretty sure that this is due to this line of code, in DBMonitorClient.pas:
Code: Select all
constructor TEventSendThread.Create(DBMonitor: TDBMonitor);
begin
inherited Create(True);
FConnectEvent := TEvent.Create(nil, True, False, '');
FEndEvent := TEvent.Create(nil, True, False, '');
{$IFDEF CLR}
Handle.IsBackGround := True;
{$ENDIF}
FDBMonitor := DBMonitor;
Resume;
if IsLibrary then
---> FConnectEvent.WaitFor(INFINITE);
end;
Has anyone have the history of this file, or encounter this kind of issue ?