I created an application on an ATMEL device that uses Toolhelp32 to
print out the running processes and their threads. This code should be
platform independent, because it uses the Toolhelp32 tools and is not
dependent on the ATMEL platform in any way.
When compiling the code and running on the OMAP 3530, I get good
output for all the processes, but the thread output is garbage. All
the thread IDs are the same, and all the owner processes are wrong.
Further investigation shows that an ERROR_INVALID_PARAMETER occurs
when calling Thread32First() and Thread32Next(). All my parameters for
this function are valid, I'm 100% sure on this.
Is there code in the OAL which is required to support the
ThreadEntry32 structs? It seems that when taking a snapshot of the
system, that I am not getting any valid thread information back.
Thanks in advance for any help.
Bruce Eitman [eMVP] - 03 Feb 2010 13:39 GMT
> All my parameters for
> this function are valid, I'm 100% sure on this.
While you may be correct, such certainty which ignores the evedence facing
you sometimes is the problem.
You don't tell us anything about the OS versions for the two devices. You
don't say that you included ToolHelpAPI in your OS for both projects.

Signature
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
Eurotech Inc.
www.Eurotech.com
>I created an application on an ATMEL device that uses Toolhelp32 to
> print out the running processes and their threads. This code should be
[quoted text clipped - 13 lines]
>
> Thanks in advance for any help.