How to inspect Visual Studio 2010 unit tests with Inspector 2011?

How to inspect Visual Studio 2010 unit tests with Inspector 2011?

Hi,

is it possible to inspect mixed-mode Visual Studio 2010 unit tests? I.e. the unit test project generates a managed assembly which calls native DLLs; I want to check those native DLLs with Inspector 2011.

When starting the unit test project in VS2010 with context menu "Intel Parallel Inspector 2011 | Inspect Memory Errors", I get the following error message:

Cannot start analysis.
File "mydir\\myfile.dll" is not executable binary.

Regards
- Frank

4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Hi Frank,

Inspector XE allows to setStartup project for C# language (managed code) and/or C/C++ language (native code). If your Startup project is C/C++ EXE project or C# project which will call native DLLs, it should work.

However if you use ASP.NET to create a unit test to generate a managed assembly (even itcalls native DLLs), but Inspector XE doesn't recognize your ASP.NET project dll, say it is not executable binary. Inspector XE still doesn't support ASP.NET project. This mean, you have to use other EXE (as a caller) to test your native DLLs.

Regards, Peter

Hi Peter,

I am not using ASP.NET; I am using a plain .NET unit test project (i.e. a DLL, not an EXE) calling native C++ DLLs.
The unit test project already is set as Visual Studio's startup project.

Regards
- Frank

Your target application for Inspector XE should be an EXE.
Native C++ DLLs will be analyzed when your app calls to them.

Accedere per lasciare un commento.