Search found 3 matches

by doananhtai
06 Jun 2017, 09:22
Forum: SFS2X C++ API
Topic: C++ API v1.7.2 and SpaceWar example released
Replies: 17
Views: 30436

Re: C++ API v1.7.2 and SpaceWar example released

I had solved this problem Not use boost in example (SpaceWar/client/extenal/boost) I download boost1.64.0 instead In SmartFoxClientAPi library project HeaderSearch and LibrarySearch do not use [api_folder]/Core/BoostAsio/Unix... use the path of boost1.64.0 and..with the old boost the ~MyStruct() nev...
by doananhtai
06 Jun 2017, 08:57
Forum: SFS2X C++ API
Topic: C++ API v1.7.2 and SpaceWar example released
Replies: 17
Views: 30436

Re: C++ API v1.7.2 and SpaceWar example released

//Call this 20 times a second boost::shared_ptr<ISFSObject> params = boost::shared_ptr<ISFSObject>(new SFSObject()); boost::shared_ptr<ExtensionRequest> request(new ExtensionRequest(REQ_CODE, params, room)); ptrSmartFox->Send(request); //the memory increase until "terminated due to memory issue...
by doananhtai
06 Jun 2017, 02:06
Forum: SFS2X C++ API
Topic: C++ API v1.7.2 and SpaceWar example released
Replies: 17
Views: 30436

Re: C++ API v1.7.2 and SpaceWar example released

In this SpaceWar example I found the ExtensionRequest cause the memory increase until "terminated due to memory issue" I think the problem is "new SFSObject()" and "(new ExtensionRequest(..)" with down delete.., but I cannot find the correct way to release them... the ....

Go to advanced search