loading
 
RR API - getVariable() hangs
Anonymous
11 years
Hi STeven and everyone,

I am developing with the API example in c#.

I am calling getVariable() to receive a long message (around 5000 characters) and it never finishes reading. it sits in the loop in readMessage(). However, it took like a second to read a 1000-character message.

I also try to paste xml messages into command line window directly and it receives the 5000-char message very quickly.

What can I do to read the long message? Will using the script plugin to process the long variable first help?

Thank you in advance!
Anonymous 11 years
It looks like the C# API is limited to 4096 chars at a time. To fix this you should edit the Program.cs and replace all 4096 (~4 occurances) to some other higher number (say 16384 ... we like sticking with powers of 2 but you can pick any number). That should allow a 5000 char message to read in ok without getting chopped.

STeven.
Anonymous 11 years
Awesome! Thank you. I should have found that.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index