Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79918

Error when using multiple rep file instances

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Remote Objects
    • None
    • All

      Hi,
      I use the CLASS keyword in a rep file like this:

      class Foo{
          PROP(double x)
          PROP(double y)
      };
      
      class Bar{
          CLASS foo(Foo)
      };
      

      The Source and the Replica of the Bar class are then connected with enableRemoting() and acquire() and a unique name parameter is used.

      The problem is now that as soon as i want to connect a second instance of the Bar class the following assert appears:

      ASSERT: "m_state < QRemoteObjectReplica::Valid || m_state == QRemoteObjectReplica::Suspect" in file qremoteobjectreplica.cpp, line 216
      

      This has s.th. to do with the nested foo object. If I look at the created source and replica class, the member name will be used as parameter for the connection (foo in this case). Could it be that the error happens because the name is no longer unique when i try to connect a second Bar instace? If so, it would be good if the name could be changed.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bstottle Brett Stottlemyer
            chrisser Suli Sahne
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes