Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-11

System.ProcessID on win32

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

System.ProcessID return the current process handle instead of the process ID. Similar issue for System.ThreadID. Attached patch fixes this.

Regards,
Vincent Snijders.

Reply by email

Tomas Hajny
to Vincent Snijders

On Fri, 19 Nov 2004 12:38:49 +0100, Vincent Snijders wrote

Hi

System.ProcessID return the current process handle instead of the process ID. Similar issue for System.ThreadID. Attached patch fixes this.

Thanks for the patch. Please, note that variables ProcessID and ThredID will be removed from interface of unit system and GetProcessID and GetThreadID functions will be provided instead (on all platforms), so you shouldn't rely on these variables in your applications. I'll make sure that the right functions from your patch will be used in the new functions.

Tomas

Reply by email