Need a Serializable LobbyInfo class

Last post 03-23-2010, 6:32 AM by bob985. 3 replies.
Sort Posts: Previous Next
  •  03-22-2010, 10:37 AM 59564

    Need a Serializable LobbyInfo class

    The LobbyInfo class, even though marked as Serializable through a class attribute, is not actually so, since it doesn't have a parameterless constructor.
     
    When I try to use GetLobbyInfoArray, which returns a LobbyInfo array, in a webservice, I get an error specifying that the LobbyInfo class is not serializable, given the lack of a parameterless constructor.
     
    Since the intention of you developers of CuteChat was clearly that of having LobbyInfo serializable, why not completing the job and adding this parameterless constructor? Make it private and none would bother.
     
    bob
  •  03-22-2010, 11:21 AM 59570 in reply to 59564

    Re: Need a Serializable LobbyInfo class

    bob,
     
    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-22-2010, 8:35 PM 59582 in reply to 59564

    Re: Need a Serializable LobbyInfo class

    bob,
     
    The LobbyInfo is designed for binary serialization , for the CuteChat load balancing mode.
     
    Even we provide a non-parameeter constructor, it still not able to be xml serialized, because the member is interface type and readonly.
     
    You can create your custom class to send the data via xml web service.
     
    Regards,
    Terry
  •  03-23-2010, 6:32 AM 59590 in reply to 59582

    Re: Need a Serializable LobbyInfo class

    And that's what I actually did. A little bit tricky, but at the end it worked.
     
    As an alternative I tried also to use the load balancing mode. However, that works well, if you use CuteChat as it is. If you need to extend some classes with additional data, you are faced with a lot of problems.
     
    Thanks,
     
    bob
View as RSS news feed in XML