NTWaitforMultipleObjects error when freeing DLL in Delphi with TVirtualTreeView

[亡魂溺海] 提交于 2019-12-13 02:47:33

问题


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.

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.

回答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

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



来源:https://stackoverflow.com/questions/687438/ntwaitformultipleobjects-error-when-freeing-dll-in-delphi-with-tvirtualtreeview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!