Software Archive
Read-only legacy content
17060 Discussions

Memory access error detection in managed code?

bobcl
Beginner
350 Views
Hi,

I made a few weeks ago a short evaluation of Intel Parallel Studio.

My test period is over now, but I found rapidly that it does not seem to support memory access errors with C++/CLI managed code, in the same way for example Rational Purify does with non managed code.

Here is the simple test program I tried:


void main()
{

char *foo;
int i;

foo = (char *) malloc(10);
for (i = 0; i<10; i++)
foo = 'a';
foo = '\\0';
foo[-1] = '\\0';

}


No error was reported here.

Did I miss something, or is Intel Parallel Studio unable to detect in real time this kind of errors?

I tested several other tools, and none so far is able to do so with managed code.

0 Kudos
1 Solution
Eric_M_Intel2
Employee
350 Views

IntelParallel Inspector 2011 does not work on C++ .NET managed code. It does work on C++ native binaries as described in the System Requirements: http://software.intel.com/sites/products/documentation/studio/inspector/en-us/2011/start/release_notes_inspector.pdf

Programming Language: C or C++ (native, not managed code) [0]

Intel Parallel Inspector 2011 will also find memory and threading errors in the unmanaged code of a mixed mode binary.

Our New Product: Intel Inspector XE 2011will additonally find threading errors on C#.NET managed code.

Regards,
Eric M

View solution in original post

0 Kudos
2 Replies
Eric_M_Intel2
Employee
351 Views

IntelParallel Inspector 2011 does not work on C++ .NET managed code. It does work on C++ native binaries as described in the System Requirements: http://software.intel.com/sites/products/documentation/studio/inspector/en-us/2011/start/release_notes_inspector.pdf

Programming Language: C or C++ (native, not managed code) [0]

Intel Parallel Inspector 2011 will also find memory and threading errors in the unmanaged code of a mixed mode binary.

Our New Product: Intel Inspector XE 2011will additonally find threading errors on C#.NET managed code.

Regards,
Eric M

0 Kudos
bobcl
Beginner
350 Views
Thanks, that clears it up.
0 Kudos
Reply