使用TVirtualTreeView在Delphi中释放DLL时出现NTWaitforMultipleObjects错误

时间:2022-06-13 21:02:07

TVirtualTreeview is pretty much awesome, but many times when I close an window referenced by a DLL in my project that has a TVirtualTreeview in it I get the NTWaitForMultipleObjects error.

TVirtualTreeview非常棒,但很多时候,当我关闭我的项目中具有TVirtualTreeview的DLL引用的窗口时,我得到了NTWaitForMultipleObjects错误。

The problem is somewhere deep in TVirtualTreeview and other guys in the office have tried lots of stuff to fix it, I was just wondering if anyone else has had a similar issue in Delphi 7.

问题出在TVirtualTreeview的深处,办公室里的其他人已经尝试了很多东西来修复它,我只是想知道是否有其他人在Delphi 7中遇到过类似的问题。


Or if it's fixed in 2009, because we've got that and are planning on upgrading our code (err.. beating our heads into the ground) soon.

2 个解决方案

#1


Maybe this helps.

也许这有帮助。

#2


The thread Ulrich pointed to should be enough to solve this problem but I don't really think it's a bug because as I understand it you're doing it wrong:
http://blogs.msdn.com/oldnewthing/archive/2009/06/26/9804500.aspx

Ulrich指出的线程应该足以解决这个问题,但我并不认为这是一个bug,因为我理解你做错了:http://blogs.msdn.com/oldnewthing/archive/2009/ 6月26日/ 9804500.aspx

The solution is to clean up your form / treeview before DllMain gets called with DLL_PROCESS_DETACH.

解决方案是在使用DLL_PROCESS_DETACH调用DllMain之前清理表单/树视图。

#1


Maybe this helps.

也许这有帮助。

#2


The thread Ulrich pointed to should be enough to solve this problem but I don't really think it's a bug because as I understand it you're doing it wrong:
http://blogs.msdn.com/oldnewthing/archive/2009/06/26/9804500.aspx

Ulrich指出的线程应该足以解决这个问题,但我并不认为这是一个bug,因为我理解你做错了:http://blogs.msdn.com/oldnewthing/archive/2009/ 6月26日/ 9804500.aspx

The solution is to clean up your form / treeview before DllMain gets called with DLL_PROCESS_DETACH.

解决方案是在使用DLL_PROCESS_DETACH调用DllMain之前清理表单/树视图。