linklist_append () return -1 ?

Feb 26, 2010 at 1:24pm

linklist_append () return -1 ?

Hello maxers,

something strange in my code today :

k = linklist_append (mylist, ob) : k is -1, and nothing appended.

Is anybody know what -1 means ?

Thanks

#48757
Feb 26, 2010 at 2:54pm

-1 is a generic error.

However, for linklist it most likely means one of two things: that your linklist pointer (mylist) is not legit or that you ran out of memory.

Probably something is wrong with your linklist pointer.

#175227
Feb 26, 2010 at 5:05pm

Hello Timothy,

i was 100 % sure that everything was correct, but given that since i can’t anymore reproduce the error, given that it’s not a problem of memory : you are right it was probably a pointer bug … sorry for this background noise proliferation …

Thanks.

#175228

You must be logged in to reply to this topic.