NXC SendMessage returning -19

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
ejvaughan
Posts: 10
Joined: 13 Jun 2011, 02:38

NXC SendMessage returning -19

Post by ejvaughan »

What does a return value of -19 from the NXC API SendMessage mean? I'm stumped.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXC SendMessage returning -19

Post by muntoo »

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 an ERR_INVALID_SIZE.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
ejvaughan
Posts: 10
Joined: 13 Jun 2011, 02:38

Re: NXC SendMessage returning -19

Post by ejvaughan »

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 an ERR_INVALID_SIZE.
Muntoo, you are exactly right! I was trying to send a text string that was one character too large! Goodness! :lol: 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests