Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Inspector 2011 reports problems in RTTI code

pisiiki
Beginner
496 Views
With this simple console program I get some Intel Inspector 2011 problems:

#include

int main()
{
typeid(int).name();
return 0;
}

In vs2008 SP1 I get 5 events about invalid reads, leaks and mismatched allocations and in vs2010 I get a windows resource leak.

It looks like the type_info::name member function is not handled correctly by the tool or that in fact it contains some kind of problem.

Regards,
Isaac Lascasas.
0 Kudos
1 Reply
Peter_W_Intel
Employee
496 Views

Hello,

I used your reference code to build my console application, Visual Studio* 2008 SP1 - didn't find any error in RTTI. Only one error was captured in MSVCR90D.dll - initcrit.c, which locatesat InitializeCriticalSetctionAndSpinCount(), actually this can be ignored.

Regards, Peter

// console.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include

int _tmain(int argc, _TCHAR* argv[])
{
typeid(int).name();
return 0;

}

0 Kudos
Reply