这是一个非常奇怪的错误:
事实证明,TFDMoniFlatFileClientLink
记住删除并放回时的文件名,然后不进行跟踪。
重现:
去除TFDMoniFlatFileClientLink
,可选择保存项目,放置TFDMoniFlatFileClientLink
再次在表单上设置tracing=true。它神奇地记住了文件名d:\temp\monitor.txt
(哪里?),那么要么不追踪,要么追踪到C:\Users\username\AppData\Local\Temp\traceX.txt
.
Only when you change the filename does it successfully trace again.*
类似奇怪的事情发生在TFDMoniRemoteFileClientLink
,它通常不会创建跟踪输出供 FDMonitor 拾取。我还没有调查过这种情况发生的具体条件。
I found this in a test app after tracing the following issue, possibly related:**
一个设计时间TFDConnection
在运行时获取其参数。我执行了TFDConnection.Params.Add('MonitorBy=mbFlatFile')
但应用程序没有追踪。我验证了MonitorByInitial=true
在运行时。Params.Add('MonitorBy=mbRemote')
也失败了。
A TFDMoniFlatFileClientLink
and TFDMoniRemoteClientLink
在设计时放置在数据模块上。
已在 Embarcadero Quality Portal 中报告,正在发布中RSP-19554 https://quality.embarcadero.com/browse/RSP-19554
* Even if you change it to the same file name. If you do that at run-time you have to set Tracing=false/true
around the FileName assignment.
** Mmm, not related. Reported as RSP-19559 https://quality.embarcadero.com/browse/RSP-19559