How to NCover a dll

How to NCover a dll

Hi,

I am trying to use NCover for a 32bit dll on a 64 bit machine. I have NCover Console version 2.1.0.

Below is my Argument and Command line.

Argument : "C:\Program Files (x86)\NUnit 2.4.7\bin\nunit-console.exe" /noshadow $(ProjectDir)bin\Debug\$(TargetName)$(TargetExt)

Command Line: C:\Program Files (x86)\NCover\NCover.Console.exe "C:\Program Files (x86)\NUnit 2.4.7\bin\nunit-console.exe" /noshadow "C:\P4\CCR\playgrounds\ccrdotnet\CIS\CustomControls-tests\bin\Debug\CustomControls-tests.dll"

I am getting the below error message when I run NCover through VS2008.


NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET Copyright (c) 2008 Gnoso Inc. http://www.ncover.com

Registered to Customer #: 16499 NCover Enterprise Edition (1 User) 28 days left in the trial period.

Command: C:\Program Files (x86)\NUnit 2.4.7\bin\nunit-console.exe Command Args: "/noshadow" "C:\P4\CCR\playgrounds\ccrdotnet\CIS\CustomControls-tests\bin\Debug\CustomControls-tests.dll" Working Directory: Assemblies:

Program Output NUnit version 2.4.7 Copyright (C) 2002-2007 Charlie Poole. Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. Copyright (C) 2000-2002 Philip Craig. All Rights Reserved.

Runtime Environment - OS Version: Microsoft Windows NT 6.0.6001 Service Pack 1 CLR Version: 2.0.50727.3053 ( Net 2.0.50727.3053 )

.... Tests run: 4, Failures: 0, Not run: 0, Time: 0.765 seconds

Exception

-- Top-level exception (System.Runtime.InteropServices.SEHException) External component has thrown an exception. -- Stack Trace at CxxThrowException(Void* , sThrowInfo ) at ShMemReader.GetMemoryPointer(ShMemReader , UInt32 addr) at ShMemLinkedList.getHeadNode(ShMemLinkedList , ShMemReader rdr) at ShMemLinkedList.count(ShMemLinkedList , ShMemReader rdr) at NCover.Data.MwShMemLinkedList<NCover::Interfaces::IModuleInfo ^\,ModuleInfo\,NCover::Data::ModuleInfoConverter>.get_Count() at NCover.Framework.CoverageData.ReadBinary() at NCover.Framework.CoverageData..ctor(INCoverData data) at NCover.Framework.ProfilerDriver.GetCoverageData() at NCover.Framework.ProfilerDriver.Execute() at NCover.ConsoleMain.ConsoleMain.Main(String[] args)


Do you know any solution for this ?

Thank you, Charith


RE: How to NCover a dll

have you tried using the //reg command?