Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

With CPU architecture x64, hosting strategy x64SatelliteProcess, NCrunch runs in an x86 process
abelb
#1 Posted : Sunday, December 4, 2016 1:56:15 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/12/2014(UTC)
Posts: 155
Location: Netherlands

Thanks: 19 times
Was thanked: 11 time(s) in 11 post(s)
Disclaimer: if for some reason I select a (forced) configuration and the process cannot be created with those properties, I would have expected an exception. But that is not the case here.

The settings in the NCrunch configuration are as in the title. My build is AnyCPU. My Windows 7 system is Intel x64. Yet NCrunch runs in x86 satellite processes. Why? Is this a bug or a is it by design?

I would like to be able to run AnyCPU processes in a 64 bit process (memory, default stack depth, pointer size and other things being different then and relevant for my tests).

I noticed this with a StackOverflow exception that wasn't detected by NCrunch (I believe detection is not guaranteed, so no blames there) and showing a popup like the following:



This made me think and I tested the pointer size just to be sure, which turned out to be size 4 (where size 8 would have been 64 bits).
Remco
#2 Posted : Monday, December 5, 2016 12:11:07 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

See here for more information on why you're seeing this in X86, and what you can do about it: http://www.ncrunch.net/documentation/troubleshooting_x86-x64-platform-issues.
1 user thanked Remco for this useful post.
abelb on 12/5/2016(UTC)
abelb
#3 Posted : Monday, December 5, 2016 12:26:34 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/12/2014(UTC)
Posts: 155
Location: Netherlands

Thanks: 19 times
Was thanked: 11 time(s) in 11 post(s)
From your link:
Quote:

Where the test assembly is built to target AnyCPU, NCrunch will then inspect the use cpu architecture NCrunch configuration setting on the test project. If this setting is anything other than AutoDetect, NCrunch will use the platform specified and will consider nothing further.


Just checked. I missed that setting when going over them, thanks. It was set to AutoDetect. Good to know.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download