Search found 25 matches

by bqlf1907
15 Aug 2013, 04:25
Forum: SFS2X C++ API
Topic: data packet too big crash
Replies: 1
Views: 2060

data packet too big crash

server send a larger data packet(100K+); client received the packet crash on // ------------------------------------------------------------------- // Uncompress // ------------------------------------------------------------------- void ByteArray::Uncompress() { ....... //crash here uncompress(data...
by bqlf1907
19 Jun 2013, 14:41
Forum: SFS2X C++ API
Topic: Chinese strings API0.9.6
Replies: 1
Views: 1675

Chinese strings API0.9.6

i updated API 0.9.6. C++ Client receive Strings(Chinese) From Server, the Strings display messy code in C++ Client. if C++ Client send str(Chinese) To Server,the str display messy code in Server too. But Server Send the str (that received from C++ Client) to C++ Client, C++Client receive the str dis...
by bqlf1907
04 Jun 2013, 12:56
Forum: SFS2X C++ API
Topic: Chinese characters
Replies: 3
Views: 1975

Re: Chinese characters

Server Output:
20:23:14,832 WARN [SocketReader] protocol.SFSProtocolCodec - Error deserializing request: java.lang.IllegalStateException: Invalid SFSObject key length. Found = 27908
by bqlf1907
04 Jun 2013, 02:08
Forum: SFS2X C++ API
Topic: crash on SmartFox->CurrentIp()
Replies: 4
Views: 2070

Re: crash on SmartFox->CurrentIp()

by the way. void SmartFox::Initialize() { .............. bitSwarm = new BitSwarmClient(this, service); .............. } but in destructor no delete bitSwarm; Q:where delete bitSwarm?
by bqlf1907
04 Jun 2013, 02:01
Forum: SFS2X C++ API
Topic: crash on SmartFox->CurrentIp()
Replies: 4
Views: 2070

Re: crash on SmartFox->CurrentIp()

void SmartFox::Connect(string* host, long int port) { ....... //bitSwarm->Connect(&endpointAddress, endpointPort); //modify bqlf1907 bitSwarm->Connect(new string(endpointAddress), endpointPort); } void BitSwarmClient::Connect(string* ip, unsigned short int port) { lastIpAddress = ip; ...... } B...
by bqlf1907
03 Jun 2013, 16:14
Forum: SFS2X C++ API
Topic: Chinese characters
Replies: 3
Views: 1975

Chinese characters

LoginRequest::LoginRequest(string* userName, string* password, string* zoneName, ISFSObject* parameters) if userName is English or Number,it's No problem; but if userName is Chinese,it's not work,and wait a moment ,run in SmartFox::OnSocketClose, and then crash on my handleEvent function; string *r...
by bqlf1907
03 Jun 2013, 07:19
Forum: SFS2X C++ API
Topic: crash on SmartFox->CurrentIp()
Replies: 4
Views: 2070

crash on SmartFox->CurrentIp()

i want to get currentIp,but crash on

Code: Select all

pSmartFox->CurrentIp()
by bqlf1907
29 May 2013, 15:30
Forum: SFS2X C++ API
Topic: DefaultSFSDataSerializer bug
Replies: 1
Views: 1310

DefaultSFSDataSerializer bug

SFSDataWrapper* DefaultSFSDataSerializer::BinDecode_BYTE_ARRAY(ByteArray* buffer) { long int size; buffer->ReadInt(size); if (size < 0) { string* err = new string(); string* format = new string("Array negative size: %d"); StringFormatter<long int> (err, format, size); delete format; forma...
by bqlf1907
29 May 2013, 15:24
Forum: SFS2X C++ API
Topic: How can i see the dump messages on the output window ?
Replies: 5
Views: 2745

Re: How can i see the dump messages on the output window ?

i updated files.
but it not work too,
error on

Code: Select all

string* SFSObject::Dump()
by bqlf1907
29 May 2013, 14:10
Forum: SFS2X C++ API
Topic: use ByteArray
Replies: 5
Views: 2680

Re: use ByteArray

[C++] ByteArray* pByteArray = obj->GetByteArray(&string("videobyte")); vector<unsigned char> vByteData; int size = pByteArray->Length(); pByteArray->ReadBytes(size,vByteData); string str(vByteData.begin(),vByteData.end()); Problem has been resolved。 ths str is normal.
by bqlf1907
28 May 2013, 14:34
Forum: SFS2X C++ API
Topic: How can i see the dump messages on the output window ?
Replies: 5
Views: 2745

Re: How can i see the dump messages on the output window ?

updated files: SFSArray.cpp and SFSObject.cpp Output SFSObject contains Basic data types is normal; but OutPut SFSObject contains many objects(SFSArray,SFSObject and so on); error on string* SFSArray::Dump() Out Put "Run-Time Check Failure #3 - The variable 'type' is being used without being in...
by bqlf1907
28 May 2013, 08:48
Forum: SFS2X C++ API
Topic: use ByteArray
Replies: 5
Views: 2680

Re: use ByteArray

oc and c++ connect the same server.
the data by oc client is normal;
the data by c++ client is error;
by bqlf1907
27 May 2013, 14:39
Forum: SFS2X C++ API
Topic: use ByteArray
Replies: 5
Views: 2680

use ByteArray

[OC] NSData* vbyte = [obj getByteArray:@"videobyte"]; NSString *m = [[[NSString alloc] initWithData:vbyte encoding:NSUTF8StringEncoding] autorelease]; string str = [m UTF8String]; [C++] ByteArray* pByteArray = obj->GetByteArray(&string("videobyte")); string str; pByteArray->R...
by bqlf1907
27 May 2013, 14:30
Forum: SFS2X C++ API
Topic: when release the next API???
Replies: 8
Views: 3574

Re: when release the next API???

Problem has been solved.
thanks balder!
by bqlf1907
24 May 2013, 06:54
Forum: SFS2X C++ API
Topic: when release the next API???
Replies: 8
Views: 3574

Re: when release the next API???

why i turn on ThreadSafeMode,SFS2X Client is not work!!!

Code: Select all

m_ptrSmartFox->ThreadSafeMode(true);

Go to advanced search