its has been 2 days since this error but I am unable to solve this. I am
making a chat client in iOS.
I am getting the exception on this line:
// Is packet done?
done = (currentWrite->bytesDone == [currentWrite->buffer length]);
and sometimes in:
buffer = (const uint8_t *)[currentWrite->buffer bytes] + currentWrite->
bytesDone;
both in GCDAsyncSocket.m file.
and the log saya this :
*2012-07-04 13:44:07.400 ChatProjectDemo[2006:fb03] I am in connect method*
*2012-07-04 13:44:07.860 ChatProjectDemo[2006:fb03] AppDelegate:
xmppStream:socketDidConnect:*
*2012-07-04 13:44:08.109 ChatProjectDemo[2006:11403] -[__NSMallocBlock__
length]: unrecognized selector sent to instance 0x8a50920*
*2012-07-04 13:44:08.110 ChatProjectDemo[2006:11403] *** Terminating app
due to uncaught exception 'NSInvalidArgumentException', reason:
'-[__NSMallocBlock__ length]: unrecognized selector sent to instance
0x8a50920'*
**** First throw call stack:*
*(0x1cc0022 0x1e5ecd6 0x1cc1cbd 0x1c26ed0 0x1c26cb2 0x7daf0 0x7d0be 0x7c8ea
0x1ab1330 0x1ab2f0c 0x1ab2cb4 0x1ab2402 0x90245b24 0x902476fe)*
*terminate called throwing an exception**(lldb)*
*
*
*
*
*please help !!*