3
내 dll, 주 응용 프로그램에 OmniThreadLibrary 2.09를 사용하고 dll에서 동일한 SimpleShareMem
메모리 관리자를 사용하고 있습니다. 오류 내 모니터를 dll의 작업으로 설정할 때 "모니터를 하나의 모니터로만 모니터링 할 수 있습니다."
FMonitor: TOmniEventMonitor;
...
FMonitor := TOmniEventMonitor.Create(nil);
나는이 모니터 새 작업을 만들려고
, 나는 오류 "작업은 단 하나의 모니터로 모니터링 할 수 있습니다"를 얻고있다FTask := OtlTaskControl.CreateTask(TaskWorker)
.OnMessage(
procedure(const ATaskControl: IOmniTaskControl; const AMsg: TOmniMessage)
begin
...
end)
.MonitorWith(FMonitor) // <----- Error
.OnTerminated(
procedure (const ATaskControl: IOmniTaskControl)
begin
...
end)
.Run();
내 모니터로 내 작업을 모니터하려면 어떻게해야합니까?
위대한 스레딩 라이브러리에 감사드립니다. – Andrew