Hi Loius What makes you so sure, that it's a real deadlock? A deadlock situation is defined as: one process owning some resources waiting for another resource to become available which is owned by a second process that is waiting for a resource to become available which is already owned by the first process. looking complicated eh? Becomes more complicated, if you have several processes. I made the experience of hanging programs when I used threads for the first time. that problem was addressed by termination and freeing of threads. Threads can be debugged, you can place breakpoints into your thread-code, there is a thread-window in the ide though sometimes the ide crashes and has to be restarted.
last (NOT LEAST): if you are using a multi-processor environment THERE ARE LOTS OF BUGS IN THE OS!!! try googeling for multitread errors. Have fun, thoug it can be hard sometimes Bob > Hi guys > > I've come across a horrible bug. Those which are undetectable and leaves > your application hanging, yep, you guessed, it's a multithreaded app > experiencing deadlock. > > I've taken on all Synchronize's and WaitFor's out of my code, and I > think I have only one thread using a critical section. > > But still, the app deadlocks. I don't know where or why. > > Can anybody offer some sugesstions on how to find out which thread is > causing this deadlock and where? > > If I could just raise an exception when deadlock occurs, this will also > be of great help. > > Cheers > Loius > > > ----------------------------------------------------- > Home page: http://groups.yahoo.com/group/delphi-en/ > To unsubscribe: [EMAIL PROTECTED] > Yahoo! Groups Links > > > > > > ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

