0

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.
lkessler
  • 19,819
  • 36
  • 132
  • 203
Peter Turner
  • 11,199
  • 10
  • 68
  • 109

2 Answers2

1

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.

PetriW
  • 1,245
  • 9
  • 13
1

Maybe this helps.

Community
  • 1
  • 1
Uli Gerhardt
  • 13,748
  • 1
  • 45
  • 83
  • Thanks, I'd seen that before I posted this question, but that forum thread was curiously unresolved and didn't help. – Peter Turner Mar 27 '09 at 17:04