title: why is there a errno S_objLib_OBJ_UNAVAILABLE?
body: <p>I want to send some data to a queue but get errno S_objLib_OBJ_UNAVAILABLE (3997698) for some reason and I don't know why. Here's what I have:</p>
  
  <pre><code>static MSG_Q_ID bfd_to_alm_data = NULL;
  // in bfd_queues_create(void)
  if (!bfd_to_alm_data) {
          bfd_to_alm_data = msgQCreate
              (
              MAX_BFD_MSGS,              /* max messages that can be queued */
              sizeof(bfd_report_t),         /* max bytes in a message */
              MSG_Q_FIFO               /* message queue options */
              );
          if (!bfd_to_alm_data) {
              printErrno(errno);
              jpax_logMsg(LOG_ERROR, LOGSTREAM_SWITCH, "ERROR: Failed to create queue for bfd messages to alarm engine. errno %d\n",errno,0,0,0,0);
              return ERROR;
          }
  // and this is where I get the error:
  if (!bfd_to_alm_data)
              rv = bfd_queues_create();
          if (rv &lt; 0) {
              jpax_logMsg(LOG_ERROR, LOGSTREAM_SWITCH, "ERROR: Could not initialize bfd_to_alm_data! errcode %d \n",rv,0,0,0,0);
              return;
          }
  
          rv = msgQSend(bfd_to_alm_data, 
                  &amp;bfd_info,
                  sizeof(bfd_report_t),
                  NO_WAIT,
                  MSG_PRI_NORMAL);        
          if (rv &lt; 0) {
              jpax_logMsg(LOG_ERROR, LOGSTREAM_SWITCH, "ERROR: Could not push Bfd alarm data onto queue! errno %d\n",errno,0,0,0,0);
          }
  </code></pre>
  
  <p>What might be going on here?</p>
  
  <p>I can confirm, the Qeue handle stays the same between the calls to <code>msgQCreate()</code> and <code>msgQSend()</code></p>