Search found 38 matches
- 08 May 2013, 02:53
- Forum: SFS2X C++ API
- Topic: 0.9.5 send request in callback crash
- Replies: 3
- Views: 7069
Re: 0.9.5 send request in callback crash
good, it not crash now, thank you
- 07 May 2013, 03:52
- Forum: SFS2X C++ API
- Topic: join room crash when ThreadSafeMode turn on
- Replies: 1
- Views: 4617
join room crash when ThreadSafeMode turn on
i try to join the lobby room after login, code below: void FullHouseServer::init( ) { // Initialize Smart Fox mSmartFox = new SmartFox(true); mSmartFox->ThreadSafeMode(true); // Add event listeners mSmartFox->AddEventListener(SFSEvent::CONNECTION, new EventListenerDelegate(FullHouseServer::OnSmartFo...
- 07 May 2013, 03:30
- Forum: SFS2X C++ API
- Topic: 0.9.5 send request in callback crash
- Replies: 3
- Views: 7069
0.9.5 send request in callback crash
i update the API to 0.9.5 and found a crash when send a request in callback while ThreadSafeMode turn on the client code below: void FullHouseServer::init( ) { // Initialize Smart Fox mSmartFox = new SmartFox(true); mSmartFox->ThreadSafeMode(true); // Add event listeners mSmartFox->AddEventListener(...
- 25 Apr 2013, 09:48
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
ok, it also work on android~
- 24 Apr 2013, 10:20
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
ok, i get it, i only set socket address for 127.0.0.1.
it work on IOS6.1~~~
but the configure file don't work, i have to change the code in ConfigLoader::TryParse to set host ip.
it work on IOS6.1~~~
but the configure file don't work, i have to change the code in ConfigLoader::TryParse to set host ip.
- 24 Apr 2013, 09:32
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
i rebuild boost without -stdlib=libc++ -std=gnu++11, the app don't crash now. but, the connect fail, and i don't get the call back for it, i add AddEventListener for SFSEvent::SFS_SOCKET_ERROR, it didn't called. i break point at TCPSocketLayer::HandleError, the SocketErrors value is 61, i don't find...
- 24 Apr 2013, 01:22
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
i compile boost by follow this link:http://gitorious.org/boostoniphone#more, and the boost version is 1.52.0, it downloaded from boost website. i didn't compare with the boost in API, i will try later. i just start connect with code below: void ConnectionTest::init() { gSmartFox = new Sfs2X::SmartFo...
- 23 Apr 2013, 13:10
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
i try on iOS6.1, xCode 4.6, but i blocked by a crash in boost when connect, 0x427f58: je 0x428032 ; boost::detail::thread_data_base::~thread_data_base() + 258 [inlined] std::__1::vector<std::__1::pair<boost::condition_variable*, boost::mutex*>, std::__1::allocator<std::__1::pair<boost::condition_var...
- 22 Apr 2013, 11:13
- Forum: SFS2X C++ API
- Topic: ThreadSafeMode turn on still get callback
- Replies: 1
- Views: 4368
ThreadSafeMode turn on still get callback
gSmartFox = new Sfs2X::SmartFox(true); gSmartFox->ThreadSafeMode(true); // Add event listeners pConnectionTest = new ConnectionTest(gSmartFox); gSmartFox->AddEventListener(SFSEvent::CONNECTION, new EventListenerDelegate(ConnectionTest::OnSmartFoxConnection, (void*)pConnectionTest)); gSmartFox->AddE...
- 22 Apr 2013, 09:34
- Forum: SFS2X C++ API
- Topic: Does C++ API work on Android and iOS?
- Replies: 11
- Views: 18935
Re: Does C++ API work on Android and iOS?
When the ios and android support released probably?
- 22 Apr 2013, 09:15
- Forum: SFS2X iPhone / iPad / OSX API
- Topic: is there thread safe mode in ios?
- Replies: 1
- Views: 5376
is there thread safe mode in ios?
is there thread safe mode in ios api? which thread handle the callbacks?
- 22 Apr 2013, 02:13
- Forum: SFS2X C++ API
- Topic: crash when ThreadSafeMode turn on
- Replies: 3
- Views: 6484
Re: crash when ThreadSafeMode turn on
that great, when it released
- 22 Apr 2013, 02:01
- Forum: SFS2X C++ API
- Topic: How to get UserVariable in OnUserVarsUpdate
- Replies: 5
- Views: 11385
Re: How to get UserVariable in OnUserVarsUpdate
it not work 1. UserVariable* variableInt = user->GetVariable(new string("MyIntVar")); long int valueInt = *(variableInt->GetIntValue()); get error when compile: error C2100: illegal indirection 2.break point after User* user = (User*)((*(ptrEvent->Params()))["user"]); and the siz...
- 22 Apr 2013, 01:43
- Forum: SFS2X C++ API
- Topic: PutFloatArray problem
- Replies: 4
- Views: 8198
Re: PutFloatArray problem
i try ISFSObject * param = new SFSObject( ); std::string* stdKey = new string("pos"); vector<float*>* playerpos = new vector<float*>(); float pos[3]; pos[0] = 1.0;pos[1] = 2.0;pos[2] = 3.0; playerpos->push_back((float *)&pos[0]); playerpos->push_back((float *)&pos[1]); playerpos->p...
- 20 Apr 2013, 03:02
- Forum: SFS2X C++ API
- Topic: crash when ThreadSafeMode turn on
- Replies: 3
- Views: 6484
crash when ThreadSafeMode turn on
i try to turn on the ThreadSafeMode: gSmartFox = new Sfs2X::SmartFox(true); gSmartFox->ThreadSafeMode(true); // Add event listeners pConnectionTest = new ConnectionTest(gSmartFox); gSmartFox->AddEventListener(SFSEvent::CONNECTION, new EventListenerDelegate(ConnectionTest::OnSmartFoxConnection, (void...