Application hangs in SysUtils -> DoneMonitorSupport on exit

前端 未结 4 1088
南笙
南笙 2020-12-30 03:36

I am writing a very thread intensive application that hangs when it exits.

I\'ve traced into the system units and found the place where the program enters an infinit

4条回答
  •  無奈伤痛
    2020-12-30 04:18

    I could reproduce your problem using the example provided by Cosmin. I could also solve the problem by simply freeing the SyncObj after all threads are done.

    As I have no access to your code, I cannot say more, but probably some object instance used by TMonitor isn't freed.

提交回复
热议问题