Problem with wm_lstDeleteItem

Hi, I’m in trouble with list structure, on a Wavecom Fastrack Supreme

I can CREATE a new list, i can ADD many ITEMS, but when i try to delete an Item I always receive

an RTE failure.

can someone insert a working sample ?

thanks Dario

Have you correctly defined your wm_lstDeleteItem function…?

I’ve declared

static wm_lst_t database;
static s16 indice;

in then main
database = wm_lstCreate (WM_LIST_NONE, NULL);

and I fill then list
indice = wm_lstAddItem ( database, p_data );

in other section I try to Delete with

n= wm_lstDeleteItem ( database, indice );