<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックRe: MsgPool Error</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262211#M7815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me simplify my question.&amp;nbsp; Does anyone know where the error "MsgPool Error&amp;nbsp; Message # not valid, in pool #" is logged or generated in MQX?&amp;nbsp; I see this error when I run Check for Errors.&amp;nbsp; I am using the function _msg_alloc() to create the message in the task's message pool.&amp;nbsp; I actually stepped through _msg_alloc to see if there was a spot where an "invalid message" was declared, but I didn't see anything.&amp;nbsp; There are checks for an invalid pool, a NULL message, and "out of messages", but nothing specifically for an "invalid message".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 13:17:31 GMT</pubDate>
    <dc:creator>paulchadbourne</dc:creator>
    <dc:date>2013-10-07T13:17:31Z</dc:date>
    <item>
      <title>MsgPool Error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262210#M7814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&amp;nbsp; I am currently having an issue where when my code attempts to send a message to a task it sometimes generates an "Invalid Message" error in the Task Summary.&amp;nbsp; Now it does not happen every time.&amp;nbsp; Sometimes the code runs fine for a few seconds, sending messages just fine.&amp;nbsp; I currently have two tasks sending messages to a third task.&amp;nbsp; Both have experienced this invalid message error.&amp;nbsp; Now I can find in the MQX code where this Invalid Message Task Error is logged in the Task Summary.&amp;nbsp; This error is being generated specifically by an invalid message, not from trying to send a freed message or one already on a queue.&amp;nbsp; Also, when I run Check for Errors I also see that two tasks are reporting MsgPool errors saying that there are invalid messages in their pools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I have two questions.&amp;nbsp; First, does anyone have any idea why I am getting an invalid message error when performing a send?&amp;nbsp; This send is not complicated.&amp;nbsp; I allocate the message in the target task's pool, set the source and target in the message header, add some data, and then send the message.&amp;nbsp; Like I said this fails intermittently.&amp;nbsp; My second question is where are the MsgPool Errors I am seeing in Check for Errors logged in the MQX code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it's worth mentioning that the MQX code that logs the Invalid Message error in the Task Summary does not log the error in Check for Errors.&amp;nbsp; Meaning when I put a breakpoint where the error is logged in Task Summary, the MsgPool Errors are already reported in Check for Errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running MQX v3.6 I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks the help and I hope I explained my issue clearly enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 15:56:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262210#M7814</guid>
      <dc:creator>paulchadbourne</dc:creator>
      <dc:date>2013-10-03T15:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: MsgPool Error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262211#M7815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me simplify my question.&amp;nbsp; Does anyone know where the error "MsgPool Error&amp;nbsp; Message # not valid, in pool #" is logged or generated in MQX?&amp;nbsp; I see this error when I run Check for Errors.&amp;nbsp; I am using the function _msg_alloc() to create the message in the task's message pool.&amp;nbsp; I actually stepped through _msg_alloc to see if there was a spot where an "invalid message" was declared, but I didn't see anything.&amp;nbsp; There are checks for an invalid pool, a NULL message, and "out of messages", but nothing specifically for an "invalid message".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 13:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262211#M7815</guid>
      <dc:creator>paulchadbourne</dc:creator>
      <dc:date>2013-10-07T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: MsgPool Error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262212#M7816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I found what was causing my problem.&amp;nbsp; I was writing 254 bytes of data into an 80 byte array...&amp;nbsp; Hence I was overwriting God knows what and corrupting messages in the pool.&amp;nbsp; That's where the invalid message errors were coming from in Check for Errors.&amp;nbsp; I know I said above that I wasn't writing data to the message, but I messed up and was actually still writing data to one of the message.&amp;nbsp; So, that was my problem.&amp;nbsp; Classic blowing out of an array.&amp;nbsp; I guess I need to re-take "Introduction to Programming C".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to let my code run over-night before I call this fixed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 20:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MsgPool-Error/m-p/262212#M7816</guid>
      <dc:creator>paulchadbourne</dc:creator>
      <dc:date>2013-10-08T20:20:35Z</dc:date>
    </item>
  </channel>
</rss>

