Показать сообщение отдельно
Старый 20.03.2009, 16:54   #2  
Varmen is offline
Varmen
Участник
 
190 / 13 (1) ++
Регистрация: 02.10.2007
X++:
public void run()
{
    #OCCRetryCount
    WMSTransport WMSTransport;
    setprefix(WMSTransportCancel::description());
    try
    {
        ttsbegin;
        WMSTransport = WMSTransport::find(WMSTransportId, true);
        WMSTransport.cancel();
        ttscommit;
    }
    catch (Exception::Deadlock)
    {
        retry;
    }
    catch (Exception::UpdateConflict)
    {
        if (appl.ttsLevel() == 0)
        {
            if (xSession::currentRetryCount() >= #RetryNum)
            {
                throw Exception::UpdateConflictNotRecovered;
            }
            else
            {
                retry;
            }
        }
        else
        {
            throw Exception::UpdateConflict;
        }
    }
}
Вылетает изза кода
if (xSession::currentRetryCount() >= #RetryNum) После нескольких неудачных попыток удалить.

Как отловить причину?
__________________
The Variable men power.