« Previous Next »

Thread: LogRecordSet.atEnd() bug

Last post 09-19-2009 7:51 PM by r_amse_s. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 05-18-2009, 3:19 PM

    LogRecordSet.atEnd() bug

    Hi, In Execute Method, the LogRecordSet.atEnd(), is never true, with ETW input in live session (real time mode). For example tracelog and logman have the real time option. It works very well with LogParser but the recordSet never reaches the end! Which makes it almost impossible to script something unless you set system timers to exit the enumeration. Awesome tool besides that. 5 stars! Cheers!
  • 09-19-2009, 7:51 PM In reply to

    • r_amse_s
    • Not Ranked
    • Joined on 09-01-2009, 6:41 PM
    • Posts 8

    Re: LogRecordSet.atEnd() bug

    i can see the same thing in delphi! this happens in every class... :-(

     and how did you resolved it? because there is no normal way to process all the records from the LogRecSet.

    i found an dirty way to solve it but don't real like it.

    try

    while not (LogRecSet.atEnd = True) do begin

    ...

    LogRecSet.moveNext;

    ...

    s := LogRecSet.getRecord.toNativeString(',');

    ...

    except

    end;

     because LogRecSet.atEnd will never get true the while loop will be never interrupted, until (and here is the work around) there is an error while you getRecord when already at the end of the query.

     

    will be there a bug fix for this? or do you have another solution?

Page 1 of 1 (2 items)
Microsoft Communities