问题描述
TVirtualTreeview非常棒,但是很多时候,当我关闭项目中包含TVirtualTreeview的DLL所引用的窗口时,都会收到NTWaitForMultipleObjects错误.
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的深处,办公室中的其他人已经尝试了很多方法来修复它,我只是想知道是否有人在Delphi 7中有类似的问题.
或者,如果它在2009年修复,因为我们已经做到了,并且正计划尽快升级我们的代码(错了...........................)
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.
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.
推荐答案
Ulrich所指向的线程应该足以解决此问题,但我并不认为这是一个错误,因为据我了解,您做错了:
http://blogs.msdn.com/oldnewthing/archive/2009/06/26/9804500.aspx
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
解决方案是在使用DLL_PROCESS_DETACH调用DllMain之前清理表单/树视图.
The solution is to clean up your form / treeview before DllMain gets called with DLL_PROCESS_DETACH.
这篇关于使用TVirtualTreeView在Delphi中释放DLL时出现NTWaitforMultipleObjects错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!