Losing Events in a Logging Session

Hi All,

I’m doing some stress tests of WPP / ETW, and for this intent I built a
simple user mode sample that stresses the WPP/ETW:

WPP_INIT_TRACING(L"WPPTeste");

->LogFileMode = EVENT_TRACE_FILE_MODE_SEQUENTIAL |
EVENT_TRACE_USE_LOCAL_SEQUENCE | EVENT_TRACE_PRIVATE_LOGGER_MODE

StartTrace(…);
EnableTrace(…) ;


for (DWORD dw1=0;dw1<100000;dw1++) {
Sleep(0);
DoTraceMessage(Debug, L"Test = %d", dw1);
}

ControlTrace(…EVENT_TRACE_CONTROL_FLUSH);
ControlTrace(…EVENT_TRACE_CONTROL_STOP);
WPP_CLEANUP();

Opening the file generated in traceview I see that some final events are
missing (usually between 30 to 50) . Is there something specific I should
configure be doing to solve this issue?

I would be grateful if you could dispense any help on these subjects.

Thanks
Cláudio Albuquerque