NXC SendMessage returning -19
Posted: 18 Jun 2011, 00:30
What does a return value of -19 from the NXC API SendMessage mean? I'm stumped.
Give a child a robot, he'll play for an hour. Teach him to build, and he'll play forever.
https://mindboards.org:443/
-19
here. Apparently, you specified something with an ERR_INVALID_SIZE
.Muntoo, you are exactly right! I was trying to send a text string that was one character too large! Goodness! Talk about a little frustrating! I tried searching through the NXC Guide for "-19," but I gave up. I guess I should've kept looking! Coming back to NXC is a little frustrating because I'm used to the documentation stating the possible return values of a function, whereas with the NXC documentation it is hard to discover what constants go with what functions. But thanks anyways for your help!muntoo wrote:Could we see your code? (A simplified version would be nice. About 10-20 lines, if you can.)
I don't see anything here.
EDIT: There's a-19
here. Apparently, you specified something with anERR_INVALID_SIZE
.