divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

problems at reading from a SF::Archive in a remote called function #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
RCF_BEGIN(I_Test, "I_Test")
RCF_METHOD_V0(void, read )
RCF_END(I_Test)

class Test_Impl
{
public:
  void read()
  {
    Test obj("something stupid");
    std::ifstream in(gArchiveFilename.c_str());
    IArchive archive(in);
    archive>>obj;
  }
};

class Test
{
public:
   Test() : name("kobold") {}

template<class Archive>
   void serialize(Archive & ar, const unsigned int version)
   {
      ar & name;
   }
   std::string name;
};

int main()
{
  Test_Impl tt;
  tt.read();     //->works fine
  ..
  client.read(); //->exception "no bytes in buffer"
}

What steps will reproduce the problem?
1. download attached file (complete example for debugging)
2. compile
3. run :D

What is the expected output? What do you see instead?
exception at remote call

What version of the product are you using? On what operating system?
0.9c/d, WinXP 64, boost1.34.1/1.35.0

Original issue reported on code.google.com by SirAnnTh...@googlemail.com on 26 Sep 2008 at 5:56

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in 1.0.

Original comment by jarl.lin...@gmail.com on 22 Oct 2008 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 28 May 2009 at 1:45