views:

167

answers:

1

I am using Delphi 2009 on Vista Ultimate 64 bit.

I run my application from within the Delphi IDE, and after some time (a minute or 2) my application will hang.

Looking at the event log, the hang is associated with a thread exiting. It is not the main thread, but a thread that has been started just after the module RSAENH.DLL has been loaded.

The app runs normally outside the debugger.

Further info: the app makes extensive use of OpenGL, including shaders and some OpenGL 3 features.

Any suggestions?

A: 

When running the IDE in Vista, the threads view should indicate if a thread is deadlocked and which resources it it waiting for. Check out this blog post on the "Wait Chain Traversal" feature: Tiburon Preview: Vista Wait Chain Traversal

David Dean - Embarcadero
Hi, thanks for your suggestion. I have checked the Thread Status window, and when the app is hung, all the threads are state Stopped, status Unknown, and there is nothing in the Wait Chain.
Alistair Ward