Microsoft KB Archive/294229

= PRB: Scheduling Log Functions SchedLogGetProcessName, SchedlLogGetThreadProgramCounter Return Invalid Strings =

Article ID: 294229

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows CE 3.0 for the Handheld PC
 * Microsoft Windows CE 2.12 for the Handheld PC
 * Microsoft Windows CE Platform Builder 2.12
 * Microsoft Encarta Reference Suite 2001

-



This article was previously published under Q294229



SYMPTOMS
The scheduling Log functions SchedLogGetProcessName and SchedLogGetThreadProgramCounter return invalid strings/values.



CAUSE
The functions are not called in the context of OEM Adaptation Layer (OAL) logging functions LogThreadCreate or LogThreadDelete.



MORE INFORMATION
Windows CE includes scheduling log functions that provide the names and addresses of processes and threads in your operating system. The functions SchedLogGetProcessName and SchedLogGetThreadProgramCounter will return valid names/strings only if they are called within the context of a LogThreadCreate or LogThreadDelete. These API's should not be used to return the names on a LogThreadSwitch.

The logging functions LogThreadCreate and LogThreadDelete are implemented in the OAL and are called by the kernel.

