MS Advanced TS client problems

gerard patel nomailthankyoug.patel at wanadoo.fr
Tue Mar 27 18:34:17 CST 2001


On Wed, 28 Mar 2001 02:33:23 +0300, "Timo Kujala" <tkujala at lut.fi>
wrote:
>a couple of
>err:ntdll:RtlpWaitForCriticalSection Critical section 0x408aa170 wait timed
>out,
> retrying (60 sec) fs=008f
>is printed on screen and application is pretty much hung.

Here is the Wine code for this :

NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit
)
{
    for (;;)
    {
        EXCEPTION_RECORD rec;
        HANDLE sem = get_semaphore( crit );
 
        DWORD res = WaitForSingleObject( sem, 5000L );
        if ( res == WAIT_TIMEOUT )
        {
            ERR("Critical section %p wait timed out, retrying (60 sec)
fs=%04x\n", crit, __get_fs() )

Try to add  before the ERR line something like:

 DbgUserBreakPoint();

and recompile. 
The debugger should fire right at this point. If it's setup that is:-/

Then use the debugger internal commands to
disas the breakpoint address. You could also use
the backtrace facility. Post this.

Gerard



More information about the wine-users mailing list