开发者

Why is a .NET x86 windows service not displayed with *32 in Task Manager?

开发者 https://www.devze.com 2022-12-15 00:34 出处:网络
I created a dummy windows service using .net 3.5. The service has been compiled for x86 explicitly (32BI开发者_开发百科T corflag is set).

I created a dummy windows service using .net 3.5. The service has been compiled for x86 explicitly (32BI开发者_开发百科T corflag is set).

Process Explorer from SysInternals correctly identifies the process as a 32-bit process. However, task manager does not append the "*32" to the process name.

Why is that?

Cheers, Alex


I suggest you add the following to your service:

Console.WriteLine("{0}", IntPtr.Size);

You'll probably find that because your service is being hosted by the 64-bit service runtime, that your app is forcing itself to run in 64-bits rather than 32-bits.

0

精彩评论

暂无评论...
验证码 换一张
取 消