Hello, I've a problem with this kind of error that appears into the function below :
Code:
void conf_supprimer_config(
Widget w,
XtPointer pst_client_data,
XtPointer pst_call_data
)
{
/*Local variables */
int *pi_position_list;
int i_nbr_elements;
int *pi_indice;
pi_indice = (int*)pst_client_data;
pi_position_list = (int*)NULL;
i_nbr_elements = 0;
if ((*pi_indice != C_CONF_LISTE_STACNES) && (*pi_indice != C_CONF_LISTE_STAEXT))
{
msg_ano (MACH, C_CONF_ERR_LOGICIEL, (long)250, (long)NULL, (long)NULL, (long)NULL, (long)NULL);
goto fin;
}
conf_i_indice = *pi_indice;
XmListGetSelectedPos (conf_tw_config[conf_i_indice],
&pi_position_list,
&i_nbr_elements);
if ( i_nbr_elements == 1 )
{
x_aff_valid(C_CONF_MESS_SUPPRESION_FIC, conf_supprimer_fichier,
C_CONF_CONF_SUPP);
}
else
{
x_aff_msg ( C_CONF_ITEM_NONSELECTIONNE, C_X_ERREUR);
}
fin:
/* Free memory */
if ( pi_position_list != (int*)NULL)
{
XtFree ((int*) pi_position_list);
}
}
I supposed the error comes from XtFree but I don't understand the reason the error explains me and how to resolve the problem ...
If someone knows ...
Thx all !
pepito