Problem with wm_lstDeleteItem


#1

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


#2

Have you correctly defined your wm_lstDeleteItem function…?


#3

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 );