Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is reason for errno = S_objLib_OBJ_ID_ERROR ?

1,060 views
Skip to first unread message

Joachim Wittmann

unread,
Mar 8, 2002, 9:46:46 AM3/8/02
to

Hi to All !

I have a semTake() function call in my application which returns with ERROR
and errno set to S_objLib_OBJ_ID_ERROR. Before this error occurs the
function works fine. I couldn't find a description for this error code, but
have some memory violation in mind. So what is the reason for returning this
error ?

Thanks for help.

Regards
Joachim

Werner Schiendl

unread,
Mar 8, 2002, 3:10:04 PM3/8/02
to
Hi,

When you call a system function that takes a handle (e. g. a SEM_ID in your
case), VxWorks verifies that this is really what it should be (well, most of
the time).
So you probably have overwritten the memory used for the semaphore.

AFAIK (but not 100% sure), the SEM_ID is actually the address of this
storage.

The error should be documented with objLib (if such a help entry exists, I
don't have it at hand now)

hth
Werner


"Joachim Wittmann" <joachim....@gmx.de> wrote in message
news:a6aisd$d1a4m$1...@ID-99394.news.dfncis.de...

0 new messages