Is it a bug in API
Kshitij Burman from India  [10 posts]
8 years
With the help RR API i can communicate with RR, but only for once.
For i.e(In VB.NET)::::
    When use         Private Sub Button1_Click................
                                          label.text = rr.GetVariable("COG_X")
    then on first click i can get the value but in next click whole application hangs.
I have uploaded the source code of my app.
please get me out of this problem

Anonymous 8 years
Not a bug but a misunderstanding. You should only call


ONCE per session. If you want to use it like you have it in your program you will have to use a

rr.Close as in

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If Not rr.Connect("localhost") Then
            MsgBox("OK", MsgBoxStyle.OkOnly, "Could not connect to RoboRealm Server")
            Label1.Text = rr.GetVariable("COG_X")
            Label2.Text = rr.GetVariable("COG_Y")
        End If
    End Sub

if you want to use the connect each time. Note this is not recommended for high performance but should be plenty fast to service user clicks.


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