PS:
If you do not know the stack structure use the debugger - Set some breakpoints at the 
start of method calls and from where the methods are called and see what happens to 
the stack window, the ESP (Stack Pointer) & EBP (Base/Frame Pointer for Method 
parameters and Local method variables) registers. It can be easier to trace up the 
stack using the EBP.

Myles

-----Original Message-----
From:   Kerry Sainsbury [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, June 29, 1999 9:20 AM
To:     Multiple recipients of list delphi
Subject:        [DUG]:  What am I waiting for?

Hi folks,

I have some code (a Delphi CORBA server) that likes to freeze up after an
hour or more of multi-threaded abuse.

The server's threads are sitting in either WaitForSingleObject or
WaitForMultipleObject.

Fine. We obviously have a deadlock. But where? Is there any way of telling
*what* we're waiting on - by looking at the registers in the CPU window, or
something?

It *can't* be any of my code (he says optimistically) because the current
version protected method calls with a shared critical section.

Thanks,
Kerry S

PS: Paul - you can stop laughing now :-)

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

application/ms-tnef

Reply via email to