INFO: SchedLog Cannot Provide Name for Static Thread Function (290096)



The information in this article applies to:

  • Microsoft Windows CE Operating System, Versions 3.0
  • Microsoft Windows CE Operating System, Versions 2.12
  • Microsoft Windows CE Operating System, Versions 2.11
  • Microsoft Windows CE Operating System, Versions 2.0
  • Microsoft Windows CE Operating System, Versions 1.0

This article was previously published under Q290096

SUMMARY

SchedLog reports an incorrect thread function name when the thread's initial function is declared static.

MORE INFORMATION

The SchedLog utility provides thread names by returning the name of the function that originally started the thread (that is, the function name used as lpStartAddress in the CreateThread function call).

If the function that originally started the thread is declared to be static, SchedLog is unable to retrieve the correct name for that thread. Static functions are those limited in scope to the source file in which they are defined. In place of the proper name for the thread, the name of a nearby non-static function name displays.

Modification Type:MajorLast Reviewed:4/14/2004
Keywords:kbinfo KB290096