while doing an memory checkup with purifier, it is showing an IPR error on the following statement.
throw true;
What could be the issue?
void Myfunc(char *p_trace_id,char *p_session_id,int &p_roam_flag)
{
try
{
int set_id=0;
if(0 == set_id)
throw true;
}
catch(bool p_return_value)
{
if(!p_return_value)
{
g_Log.log(DEBUG, p_trace_id ,"[%s] %s<Line: %d> ", p_session_id ,__FUNCTION__,__LINE__);
p_roam_flag = 0;
}
}
catch(...)
{
g_Log.log(DEBUG, p_trace_id ,"[%s] %s<Line: %d> ", p_session_id ,__FUNCTION__,__LINE__);
}
}
As per my analysis, there is issue in older version of purify. But i am using latest version.
Purify V7.0
Solaris V5.0