Search found 126 matches

by MBagnati
17 Dec 2014, 17:47
Forum: SFS2X C++ API
Topic: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
Replies: 6
Views: 12137

Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)

Hi, Please open API file SmartFox.cpp and move to line 1618. Here replace boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]); with boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer...
by MBagnati
04 Dec 2014, 23:51
Forum: SFS2X C++ API
Topic: EventListenerDelegate Context
Replies: 1
Views: 5864

Re: EventListenerDelegate Context

The context argument is an optional value. SmartFox API does not use it; simply propagates it The argument has been designed to carry an information into the event listener. This "opaque" argument provides a way (if developer has this need) to move a value into event listener. The context ...
by MBagnati
12 Nov 2014, 09:11
Forum: SFS2X C++ API
Topic: FindRoomRequest has proplem with MatchExpression
Replies: 14
Views: 20054

Re: FindRoomRequest has proplem with MatchExpression

Hi, I have investigated the issue and I have found an error in API library. As temporary workaround please use a double datatype to declare the matchValue. In your filterRoom function, please temporarly replace boost::shared_ptr<int> matchValue(new int(4)); with boost::shared_ptr<double> matchValue(...
by MBagnati
18 Oct 2014, 10:25
Forum: SFS2X C++ API
Topic: Memory leaks in c++ api
Replies: 13
Views: 21191

Re: Memory leaks in c++ api

Hi,
At the end of file Bitswarm\BitSwarmClient.h
please replace

Code: Select all

      boost::mutex lockDispose;

with

Code: Select all

      boost::recursive_mutex lockDispose;

and rebuild API

Let me know if deadlock is solved
Thanks
by MBagnati
13 Oct 2014, 00:42
Forum: SFS2X Questions
Topic: C++ GAME DEVELOPERS WANTED
Replies: 26
Views: 184825

Re: C++ GAME DEVELOPERS WANTED

The Visual Studio project for SimpleChat sample creates an application (SimpleChat.exe) that uses SmartFox Client API (SmartFoxClientApi) to communicate with SmartFoxServer. The SmartFox Client API uses Boost Library to be platform independent and ZLib library to compress exchanged data. So the &quo...
by MBagnati
08 Oct 2014, 10:16
Forum: SFS2X C++ API
Topic: Memory leaks in c++ api
Replies: 13
Views: 21191

Re: Memory leaks in c++ api

Hi, I suppose that crash depends on the concurrent execution of Dispose task while API<->SmartFoxServer connection is falling down. Your call stack shows that while main thread is calling Dispose Strategyd.exe!Sfs2X::Bitswarm::BitSwarmClient::Dispose() Line 89 C++ Strategyd.exe!Sfs2X::SmartFox::Disp...
by MBagnati
08 Oct 2014, 09:24
Forum: SFS2X Questions
Topic: C++ GAME DEVELOPERS WANTED
Replies: 26
Views: 184825

Re: C++ GAME DEVELOPERS WANTED

Please try these steps: 1) Download API from SmartFoxServer website 2) Download Cpp Examples from SmartFoxServer website 3) Unzip downloaded SFS2X_API_Cpp_v1.1.5 4) Unzip downloaded SFS2X_Cpp_Examples 5) Move SFS2X_API_Cpp_v1.1.5 and SFS2X_Cpp_Examples directories to get this layout on your filesyst...
by MBagnati
08 Sep 2014, 17:17
Forum: SFS2X C++ API
Topic: Compile 1.1.3 Api in Eclipse
Replies: 13
Views: 20374

Re: Compile 1.1.3 Api in Eclipse

Hi, any news about compiling API on Windows with Eclipse? In these days I have successfuly compiled API on Linux with Eclipse and on Windows with VisualStudio....seems that API source is "compatible" with both Eclipse and VisualStudio. I have done only a preliminary test to compile API on ...
by MBagnati
03 Sep 2014, 09:25
Forum: SFS2X C++ API
Topic: Compile 1.1.3 Api in Eclipse
Replies: 13
Views: 20374

Re: Compile 1.1.3 Api in Eclipse

About Eclipse issue, what's the detail of the error ?
What is the problem that Eclipse has detected in XMLNode?
by MBagnati
03 Sep 2014, 09:09
Forum: SFS2X C++ API
Topic: Compile 1.1.3 Api in Eclipse
Replies: 13
Views: 20374

Re: Compile 1.1.3 Api in Eclipse

Hi, About ZLib, I think that you can ignore the error "Cannot export gzopen_w: symbol not defined" The main output for ZLib compilation are two files: libz.a and libz.dll.a (files are created in \ZLib folder) Please check that files are created. In any case, you can fix the error removing ...
by MBagnati
02 Sep 2014, 14:25
Forum: SFS2X C++ API
Topic: C++ API bug with getLongArray
Replies: 2
Views: 6960

Re: C++ API bug with getLongArray

Hi, it is an API error. To fix please apply these changes: Change #1 File: \Entities\Data\SFSObject.cpp Method: boost::shared_ptr<string> SFSObject::Dump() at line 287 there is case SFSDATATYPE_LONG_ARRAY: that is implemented in this way case SFSDATATYPE_LONG_ARRAY: { strDump->append("[");...
by MBagnati
28 Aug 2014, 21:25
Forum: SFS2X C++ API
Topic: Crash after connection
Replies: 1
Views: 5716

Re: Crash after connection

Hi, I have tried to replicate the issue but unfortunately I have not seen any crash. My test is made of a class declared in a .H file class CMyTest { public: void connectToSfs(); private: boost::shared_ptr<Sfs2X::SmartFox> smartfoxServer; }; and implemented in a .cpp file void CMyTest::connectToSfs(...
by MBagnati
14 Aug 2014, 15:16
Forum: SFS2X C++ API
Topic: Error in SmartFox::SetClientDetails
Replies: 1
Views: 6575

Re: Error in SmartFox::SetClientDetails

Hi, Please replace SmartFox::SetClientDetails method contained into SmartFox.cpp with this code: void SmartFox::SetClientDetails(boost::shared_ptr<string> platformId, boost::shared_ptr<string> version) { if (IsConnected()) { boost::shared_ptr<vector<string> > logMessages (new vector<string>()); logM...
by MBagnati
12 Aug 2014, 14:55
Forum: SFS2X C++ API
Topic: C++ Client API for Unreal Engine 4
Replies: 11
Views: 29348

Re: C++ Client API for Unreal Engine 4

Hi, Seems that LogLevel symbol is ambiguous because it is defined twice: in SmartFox.h and in FLogCategoryLogLevel. A way to solve the problem could be the usage of namespace. The LogLevel defined by API is contained into Sfs2X::Logging namespace, on the other hand I suppose that LogLevel declared i...
by MBagnati
30 Jul 2014, 09:01
Forum: SFS2X C++ API
Topic: Can not retry connection in C++ API
Replies: 5
Views: 10184

Re: Can not retry connection in C++ API

Hi, You are right, function OnSocketReconnectionTry does not fire up the CONNECTION_RETRY event because the DispatchEvent statement is missing. But I think that this is not the only reason that causes the error. I suspects that the error cause is little more extended. I am working to fix the problem...

Go to advanced search