开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜